[][src]Struct delog::hex::HexStr

pub struct HexStr<'a, T: ?Sized, U, S> where
    U: Unsigned,
    S: Separator
{ pub value: &'a T, // some fields omitted }

Zero-sized wrapper newtype, allowing grouping bytes in blocks of N hexadecimals during formatting.

Use the method with the same name to construct this from your byte array or slice, or preferrably the hex_str! or hexstr! macro.

Fields

value: &'a T

The value to be formatted.

Trait Implementations

impl<T: ?Sized, S, U> Debug for HexStr<'_, T, U, S> where
    T: AsRef<[u8]>,
    U: Unsigned,
    S: Separator
[src]

impl<T: ?Sized, U, S> Display for HexStr<'_, T, U, S> where
    T: AsRef<[u8]>,
    U: Unsigned,
    S: Separator
[src]

impl<'a, T: ?Sized, U, S> LowerHex for HexStr<'a, T, U, S> where
    T: AsRef<[u8]>,
    U: Unsigned,
    S: Separator
[src]

impl<'a, T: ?Sized, U, S> UpperHex for HexStr<'a, T, U, S> where
    T: AsRef<[u8]>,
    U: Unsigned,
    S: Separator
[src]

Auto Trait Implementations

impl<'a, T: ?Sized, U, S> RefUnwindSafe for HexStr<'a, T, U, S> where
    S: RefUnwindSafe,
    T: RefUnwindSafe,
    U: RefUnwindSafe
[src]

impl<'a, T: ?Sized, U, S> Send for HexStr<'a, T, U, S> where
    S: Send,
    T: Sync,
    U: Send
[src]

impl<'a, T: ?Sized, U, S> Sync for HexStr<'a, T, U, S> where
    S: Sync,
    T: Sync,
    U: Sync
[src]

impl<'a, T: ?Sized, U, S> Unpin for HexStr<'a, T, U, S> where
    S: Unpin,
    U: Unpin
[src]

impl<'a, T: ?Sized, U, S> UnwindSafe for HexStr<'a, T, U, S> where
    S: UnwindSafe,
    T: RefUnwindSafe,
    U: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.