pub struct AbbrBytes<T>(pub T);Expand description
A wrapper for bytes slice which tries to guess best way to format it truncating the value if it’s too long.
Behaves like Bytes but truncates the formatted string to around 128
characters. If the value is longer then that, the length of the value in
bytes is included at the beginning and ellipsis is included at the end of
the value.
Tuple Fields§
§0: TTrait Implementations§
Auto Trait Implementations§
impl<T> Freeze for AbbrBytes<T>where
T: Freeze,
impl<T> RefUnwindSafe for AbbrBytes<T>where
T: RefUnwindSafe,
impl<T> Send for AbbrBytes<T>where
T: Send,
impl<T> Sync for AbbrBytes<T>where
T: Sync,
impl<T> Unpin for AbbrBytes<T>where
T: Unpin,
impl<T> UnwindSafe for AbbrBytes<T>where
T: UnwindSafe,
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