pub struct BString(/* private fields */);Expand description
A wrapper for String which implements Borrow<[u8]> and hashes in the same way as a byte
slice.
Trait Implementations§
impl Eq for BString
Source§impl Ord for BString
impl Ord for BString
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 BString
impl PartialOrd for BString
impl StructuralPartialEq for BString
Auto Trait Implementations§
impl Freeze for BString
impl RefUnwindSafe for BString
impl Send for BString
impl Sync for BString
impl Unpin for BString
impl UnsafeUnpin for BString
impl UnwindSafe for BString
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