Struct drawbridge_byte::Bytes
source · [−]pub struct Bytes<T, C = Standard>(_, _);Expand description
A wrapper for bytes which provides base64 encoding in string contexts
Implementations
sourceimpl<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
sourceimpl<T: Ord, C: Ord> Ord for Bytes<T, C>
impl<T: Ord, C: Ord> Ord for Bytes<T, C>
sourceimpl<T: PartialOrd, C: PartialOrd> PartialOrd<Bytes<T, C>> for Bytes<T, C>
impl<T: PartialOrd, C: PartialOrd> PartialOrd<Bytes<T, C>> for Bytes<T, C>
sourcefn partial_cmp(&self, other: &Bytes<T, C>) -> Option<Ordering>
fn partial_cmp(&self, other: &Bytes<T, C>) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl<T: Eq, C: Eq> Eq for Bytes<T, C>
impl<T, C> StructuralEq for Bytes<T, C>
impl<T, C> StructuralPartialEq for Bytes<T, C>
Auto Trait Implementations
impl<T, C> RefUnwindSafe for Bytes<T, C> where
C: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, C> Send for Bytes<T, C> where
C: Send,
T: Send,
impl<T, C> Sync for Bytes<T, C> where
C: Sync,
T: Sync,
impl<T, C> Unpin for Bytes<T, C> where
C: Unpin,
T: Unpin,
impl<T, C> UnwindSafe for Bytes<T, C> where
C: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more