[−][src]Struct hal::HexBytes
Utility struct to serialize byte strings as hex.
Methods
impl HexBytes
[src]
pub fn hex(&self) -> String
[src]
pub fn bytes(&self) -> &[u8]
[src]
pub fn take_bytes(self) -> Vec<u8>
[src]
Trait Implementations
impl Clone for HexBytes
[src]
impl Debug for HexBytes
[src]
impl<'de> Deserialize<'de> for HexBytes
[src]
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<HexBytes, D::Error>
[src]
impl Eq for HexBytes
[src]
impl<'a> From<&'a [u8]> for HexBytes
[src]
impl From<Vec<u8>> for HexBytes
[src]
impl Hash for HexBytes
[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,
impl PartialEq<HexBytes> for HexBytes
[src]
impl Serialize for HexBytes
[src]
impl StructuralEq for HexBytes
[src]
impl StructuralPartialEq for HexBytes
[src]
Auto Trait Implementations
impl RefUnwindSafe for HexBytes
impl Send for HexBytes
impl Sync for HexBytes
impl Unpin for HexBytes
impl UnwindSafe for HexBytes
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
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, U> TryFrom<U> 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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,