Struct packable::packer::SlicePacker
source · [−]pub struct SlicePacker<'a> { /* private fields */ }
Expand description
A Packer
backed by a &mut [u8]
.
Implementations
sourceimpl<'a> SlicePacker<'a>
impl<'a> SlicePacker<'a>
Trait Implementations
sourceimpl<'a> Packer for SlicePacker<'a>
impl<'a> Packer for SlicePacker<'a>
type Error = UnexpectedEOF
type Error = UnexpectedEOF
An error type representing any error related to writing bytes.
sourcefn written_bytes(&self) -> Option<usize>
fn written_bytes(&self) -> Option<usize>
Returns the exact number of written bytes if possible.
Auto Trait Implementations
impl<'a> RefUnwindSafe for SlicePacker<'a>
impl<'a> Send for SlicePacker<'a>
impl<'a> Sync for SlicePacker<'a>
impl<'a> Unpin for SlicePacker<'a>
impl<'a> !UnwindSafe for SlicePacker<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more