pub struct Bytes(pub Vec<u8>);
Expand description
A wrapper around Vec<u8>
for binary data
Tuple Fields§
§0: Vec<u8>
Trait Implementations§
Source§impl Shapely for Bytes
impl Shapely for Bytes
Source§fn shape_desc() -> ShapeDesc
fn shape_desc() -> ShapeDesc
Returns a shape def (a function that can describe this shape)
Source§fn partial() -> Partial<'static>
fn partial() -> Partial<'static>
Allocates this shape on the heap and return a partial that allows gradually initializing its fields.
Source§fn partial_from_uninit(dest: &mut MaybeUninit<Self>) -> Partial<'_>
fn partial_from_uninit(dest: &mut MaybeUninit<Self>) -> Partial<'_>
impl Eq for Bytes
impl StructuralPartialEq for Bytes
Auto Trait Implementations§
impl Freeze for Bytes
impl RefUnwindSafe for Bytes
impl Send for Bytes
impl Sync for Bytes
impl Unpin 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