pub trait EncodeBytes {
// Required method
fn encode_bytes<W: IoWrite>(
&self,
writer: &mut W,
) -> Result<usize, Error<<W as IoWrite>::Error>>;
}Expand description
Trait for encoding MessagePack binary data.
Required Methods§
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.
Implementations on Foreign Types§
Source§impl EncodeBytes for &[u8]
impl EncodeBytes for &[u8]
Source§impl EncodeBytes for Box<[u8]>
Available on crate feature alloc only.
impl EncodeBytes for Box<[u8]>
Available on crate feature
alloc only.Source§impl EncodeBytes for Vec<u8>
Available on crate feature alloc only.
impl EncodeBytes for Vec<u8>
Available on crate feature
alloc only.