Implement binary interface as trait