pub trait ToFfi { fn to_ffi_bytes(&self) -> Vec; } pub trait FromFfi: Sized { fn from_ffi_bytes(bytes: &[u8]) -> Option; } pub trait FfiLabel { fn prefix(&self) -> &'static str; fn type_label(&self) -> &'static str; }