pub enum HashOrStr<H, S>{
Hash(H),
Str(S),
}Expand description
Either a hash or its associated string
This enum is intended to be used along with a HashMapper for display.
If string is unknown, the hash value is written as {hex-value}
Variants§
Trait Implementations§
Auto Trait Implementations§
impl<H, S> Freeze for HashOrStr<H, S>
impl<H, S> RefUnwindSafe for HashOrStr<H, S>where
H: RefUnwindSafe,
S: RefUnwindSafe,
impl<H, S> Send for HashOrStr<H, S>
impl<H, S> Sync for HashOrStr<H, S>
impl<H, S> Unpin for HashOrStr<H, S>
impl<H, S> UnwindSafe for HashOrStr<H, S>where
H: UnwindSafe,
S: 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