pub trait OperandEncodable: Sized {
// Required methods
fn to_bytes(&self, buf: &mut impl Extend<u8>);
fn try_from_bytes(bytes: &[u8]) -> Result<Self>;
fn len(&self) -> usize;
fn expected_len() -> Range<usize>;
}Required Methods§
fn to_bytes(&self, buf: &mut impl Extend<u8>)
fn try_from_bytes(bytes: &[u8]) -> Result<Self>
fn len(&self) -> usize
fn expected_len() -> Range<usize>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.