pub struct Packer<'a> { /* private fields */ }Expand description
Packer of POD values into a StructBuf.
The packer maintains an index (0 <= i <= lim()) where new values are
written, which is incremented after each write. Write operations panic if
the buffer capacity limit is exceeded.
The packer intentionally does not expose the underlying StructBuf to
guarantee append-only operation.
Little-endian encoding is assumed.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Packer<'a>
impl<'a> RefUnwindSafe for Packer<'a>
impl<'a> Send for Packer<'a>
impl<'a> Sync for Packer<'a>
impl<'a> Unpin for Packer<'a>
impl<'a> !UnwindSafe for Packer<'a>
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