pub struct Bytes(pub Vec<u8>);Expand description
A byte string. A plain Vec<u8> is an array of integers instead.
There is deliberately no conversion for Option: writing None as null would make
Some(None) and None indistinguishable. Structures leave out absent fields instead.
Tuple Fields§
§0: Vec<u8>Trait Implementations§
impl Eq for Bytes
impl StructuralPartialEq for Bytes
Auto Trait Implementations§
impl Forget for Bytes
impl Freeze for Bytes
impl Move for Bytes
impl RefUnwindSafe for Bytes
impl Send for Bytes
impl Sync for Bytes
impl Unpin for Bytes
impl UnsafeUnpin for Bytes
impl UnwindSafe for Bytes
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