Struct BStr
struct BStr(_)
Improved Debug experience for &[u8] UTF-8-ish streams
Implementations
impl BStr
fn new<B: ?Sized + AsRef<[u8]>>(bytes: &B) -> &SelfMake a stream out of a byte slice-like.
impl AsRef for BStr
fn as_ref(self: &Self) -> &[u8]
impl Debug for BStr
fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result
impl Deref for BStr
fn deref(self: &Self) -> &[u8]
impl Eq for BStr
impl Freeze for BStr
impl Hash for BStr
fn hash<__H: $crate::hash::Hasher>(self: &Self, state: &mut __H)
impl Index for BStr
fn index(self: &Self, r: RangeTo<usize>) -> &BStr
impl Index for BStr
fn index(self: &Self, r: RangeInclusive<usize>) -> &BStr
impl Index for BStr
fn index(self: &Self, _: RangeFull) -> &BStr
impl Index for BStr
fn index(self: &Self, r: RangeToInclusive<usize>) -> &BStr
impl Index for BStr
fn index(self: &Self, r: RangeFrom<usize>) -> &BStr
impl Index for BStr
fn index(self: &Self, r: Range<usize>) -> &BStr
impl Index for BStr
fn index(self: &Self, idx: usize) -> &u8
impl Ord for BStr
fn cmp(self: &Self, other: &BStr) -> Ordering
impl PartialEq for BStr
fn eq(self: &Self, other: &BStr) -> bool
impl PartialOrd for BStr
fn partial_cmp(self: &Self, other: &BStr) -> Option<Ordering>
impl RefUnwindSafe for BStr
impl Send for BStr
impl Sized for BStr
impl Sync for BStr
impl Unpin for BStr
impl UnsafeUnpin for BStr
impl UnwindSafe for BStr
impl<'a> PartialEq for BStr
fn eq(self: &Self, other: &&'a [u8]) -> bool
impl<'a> PartialEq for BStr
fn eq(self: &Self, other: &str) -> bool
impl<'a> PartialEq for BStr
fn eq(self: &Self, other: &[u8]) -> bool
impl<'a> PartialEq for BStr
fn eq(self: &Self, other: &&'a str) -> bool
impl<'a> PartialOrd for BStr
fn partial_cmp(self: &Self, other: &str) -> Option<Ordering>
impl<'a> PartialOrd for BStr
fn partial_cmp(self: &Self, other: &[u8]) -> Option<Ordering>
impl<'a> PartialOrd for BStr
fn partial_cmp(self: &Self, other: &&'a str) -> Option<Ordering>
impl<'a> PartialOrd for BStr
fn partial_cmp(self: &Self, other: &&'a [u8]) -> Option<Ordering>
impl<P, T> Receiver for BStr
impl<T> Any for BStr
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for BStr
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for BStr
fn borrow_mut(self: &mut Self) -> &mut T