pub struct SmallHex { /* private fields */ }Expand description
A short, inline snapshot of offending bytes for diagnostics — never a heap allocation on the hot error path, and capped so a hostile stream cannot make an error message unbounded.
Implementations§
Trait Implementations§
impl Copy for SmallHex
impl Eq for SmallHex
impl StructuralPartialEq for SmallHex
Auto Trait Implementations§
impl Freeze for SmallHex
impl RefUnwindSafe for SmallHex
impl Send for SmallHex
impl Sync for SmallHex
impl Unpin for SmallHex
impl UnsafeUnpin for SmallHex
impl UnwindSafe for SmallHex
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