pub struct FixedSizedTestBuffer(/* private fields */);
Implementations§
Trait Implementations§
Source§impl Append for FixedSizedTestBuffer
impl Append for FixedSizedTestBuffer
fn append_bytes(&mut self, bytes: &[u8]) -> Result<(), BufferTooSmall>
fn append_bytes_zeroed( &mut self, len: usize, ) -> Result<&mut [u8], BufferTooSmall>
fn can_append(&self, bytes: usize) -> bool
fn append_value<T>(&mut self, value: &T) -> Result<(), BufferTooSmall>where
T: IntoBytes + Immutable + ?Sized,
fn append_byte(&mut self, byte: u8) -> Result<(), BufferTooSmall>
fn append_value_zeroed<T>(
&mut self,
) -> Result<Ref<&mut [u8], T>, BufferTooSmall>where
T: FromBytes + KnownLayout + Immutable + Unaligned,
fn append_array_zeroed<T>(
&mut self,
num_elems: usize,
) -> Result<Ref<&mut [u8], [T]>, BufferTooSmall>where
T: FromBytes + Immutable + Unaligned,
Source§impl TrackedAppend for FixedSizedTestBuffer
impl TrackedAppend for FixedSizedTestBuffer
fn bytes_appended(&self) -> usize
Auto Trait Implementations§
impl Freeze for FixedSizedTestBuffer
impl RefUnwindSafe for FixedSizedTestBuffer
impl Send for FixedSizedTestBuffer
impl Sync for FixedSizedTestBuffer
impl Unpin for FixedSizedTestBuffer
impl UnwindSafe for FixedSizedTestBuffer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more