pub trait ManagedVecItemPayload {
// Required methods
fn new_buffer() -> Self;
fn payload_size() -> usize;
fn payload_slice(&self) -> &[u8] ⓘ;
fn payload_slice_mut(&mut self) -> &mut [u8] ⓘ;
}
Expand description
Describes the binary represetnation of a ManagedVecItem.
It is always an array that can be allocated directly on stack.
Required Methods§
fn new_buffer() -> Self
fn payload_size() -> usize
fn payload_slice(&self) -> &[u8] ⓘ
fn payload_slice_mut(&mut self) -> &mut [u8] ⓘ
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.