Struct simple_bytes::BytesOwned [−][src]
pub struct BytesOwned { /* fields omitted */ }
Expand description
A Vec wrapper that implements BytesWrite and BytesRead
Implementations
Creates a new Vec with the given capacity.
Returns the underlying Vec mutably.
Removing items can lead to panics while reading or writing.
Trait Implementations
Tries to read a given length without updating
the internal position. Returns None
if there are not enought
bytes remaining. Read more
Returns the remaining mutable slice.
If an empty slice is returned, this does not mean you can’t write anymore.
Writes a slice. Allocates more space if the slice is
bigger than the Vec
.
Returns the entire slice as a bytes struct
setting the position of the new Bytes to 0
. Read more
Writes an u128
. Read more
Writes an i128
. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for BytesOwned
impl Send for BytesOwned
impl Sync for BytesOwned
impl Unpin for BytesOwned
impl UnwindSafe for BytesOwned
Blanket Implementations
Mutably borrows from an owned value. Read more