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>
1.21.0 · sourcefn 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 · sourcefn 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
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<T: PartialEq, C: PartialEq> PartialEq<Bytes<T, C>> for Bytes<T, C>
impl<T: PartialEq, C: PartialEq> PartialEq<Bytes<T, C>> 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>
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 moreimpl<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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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