pub struct Bytes<T, C = Standard>(/* private fields */);
Expand description
A wrapper for bytes which provides base64 encoding in string contexts
Implementations§
Source§impl<T, C> Bytes<T, C>
impl<T, C> Bytes<T, C>
Sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Consumes the outer type, returning the inner type
Trait Implementations§
Source§impl<T: Ord, C: Ord> Ord for Bytes<T, C>
impl<T: Ord, C: Ord> Ord for Bytes<T, C>
1.21.0 · 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
Source§impl<T: PartialOrd, C: PartialOrd> PartialOrd for Bytes<T, C>
impl<T: PartialOrd, C: PartialOrd> PartialOrd for Bytes<T, C>
impl<T: Eq, C: Eq> Eq for Bytes<T, C>
impl<T, C> StructuralPartialEq for Bytes<T, C>
Auto Trait Implementations§
impl<T, C> Freeze for Bytes<T, C>where
T: Freeze,
impl<T, C> RefUnwindSafe for Bytes<T, C>where
T: RefUnwindSafe,
C: RefUnwindSafe,
impl<T, C> Send for Bytes<T, C>
impl<T, C> Sync for Bytes<T, C>
impl<T, C> Unpin for Bytes<T, C>
impl<T, C> UnwindSafe for Bytes<T, C>where
T: UnwindSafe,
C: 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