Struct rmp::encode::buffer::ByteBuf [−][src]
pub struct ByteBuf { /* fields omitted */ }
Expand description
A wrapper around Vec<u8>
to serialize more efficiently.
This has a specialized implementation of RmpWrite
It gives std::convert::Infailable
for errors.
This is because writing to Vec<T>
can only fail due to allocation.
This has the additional benefit of working on #[no_std]
See also serde_bytes::ByteBuf
Implementations
Construct a new buffer with the specified capacity
See Vec::with_capacity for details
Get a mutable reference to this type as a Vec
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for ByteBuf
impl UnwindSafe for ByteBuf
Blanket Implementations
Mutably borrows from an owned value. Read more