pub struct Bytes(pub Vec<u8>);Expand description
Bytes: raw bytes.
Tuple Fields§
§0: Vec<u8>Trait Implementations§
impl Eq for Bytes
Source§impl Ord for Bytes
impl Ord for Bytes
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Bytes
impl PartialOrd for Bytes
Source§impl Shaped for Bytes
impl Shaped for Bytes
Source§fn write_at(
&self,
out: &mut ValueWriter<'_, '_>,
ty: &Type,
) -> Result<(), EncodeError>
fn write_at( &self, out: &mut ValueWriter<'_, '_>, ty: &Type, ) -> Result<(), EncodeError>
Source§fn read_at(
input: &mut ValueReader<'_, '_, '_>,
ty: &Type,
) -> Result<Self, DecodeError>
fn read_at( input: &mut ValueReader<'_, '_, '_>, ty: &Type, ) -> Result<Self, DecodeError>
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 Byteswhere
RawVecInner: Send,
impl Sync for Byteswhere
RawVecInner: Sync,
impl Unpin for Bytes
impl UnsafeUnpin for Bytes
impl UnwindSafe for Byteswhere
RawVecInner: UnwindSafe,
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