[−][src]Struct wallet_gen::hex_slice::HexSlice
A wrapper around a &[u8]
byte slice that implements
various formatting traits, such as Display
,
LowerHex
, and UpperHex
so it can be conveniently
used to format byte strings.
Methods
impl<'a> HexSlice<'a>
[src]
pub fn new<T: ?Sized>(data: &'a T) -> Self where
T: AsRef<[u8]> + 'a,
[src]
T: AsRef<[u8]> + 'a,
Creates a new HexSlice
.
pub fn format(&self) -> String
[src]
Format the byte slice into a String
.
Trait Implementations
impl<'a> Copy for HexSlice<'a>
[src]
impl<'a> AsRef<[u8]> for HexSlice<'a>
[src]
impl<'a> Clone for HexSlice<'a>
[src]
fn clone(&self) -> HexSlice<'a>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a> Deref for HexSlice<'a>
[src]
impl<'a> Display for HexSlice<'a>
[src]
impl<'a> Debug for HexSlice<'a>
[src]
impl<'a> Hash for HexSlice<'a>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<'a> LowerHex for HexSlice<'a>
[src]
impl<'a> UpperHex for HexSlice<'a>
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From for T
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Same for T
type Output = T
Should always be Self