pub struct BufferWriter<B> { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl<B: SplitByteSliceMut> Append for BufferWriter<B>
impl<B: SplitByteSliceMut> Append for BufferWriter<B>
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<B: SplitByteSliceMut> TrackedAppend for BufferWriter<B>
impl<B: SplitByteSliceMut> TrackedAppend for BufferWriter<B>
fn bytes_appended(&self) -> usize
Auto Trait Implementations§
impl<B> Freeze for BufferWriter<B>where
B: Freeze,
impl<B> RefUnwindSafe for BufferWriter<B>where
B: RefUnwindSafe,
impl<B> Send for BufferWriter<B>where
B: Send,
impl<B> Sync for BufferWriter<B>where
B: Sync,
impl<B> Unpin for BufferWriter<B>where
B: Unpin,
impl<B> UnwindSafe for BufferWriter<B>where
B: UnwindSafe,
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