pub struct DebugBytes(pub Vec<u8>);
Expand description
Wrapper struct with a Debug
implementation to represent bytes vector in
human-friendly way.
Tuple Fields§
§0: Vec<u8>
Trait Implementations§
Source§impl Debug for DebugBytes
impl Debug for DebugBytes
Source§impl Hash for DebugBytes
impl Hash for DebugBytes
Source§impl Ord for DebugBytes
impl Ord for DebugBytes
Source§fn cmp(&self, other: &DebugBytes) -> Ordering
fn cmp(&self, other: &DebugBytes) -> Ordering
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 PartialEq for DebugBytes
impl PartialEq for DebugBytes
Source§impl PartialOrd for DebugBytes
impl PartialOrd for DebugBytes
impl Eq for DebugBytes
impl StructuralPartialEq for DebugBytes
Auto Trait Implementations§
impl Freeze for DebugBytes
impl RefUnwindSafe for DebugBytes
impl Send for DebugBytes
impl Sync for DebugBytes
impl Unpin for DebugBytes
impl UnwindSafe for DebugBytes
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more