Struct wallet::Slice32[][src]

pub struct Slice32(_);

Wrapper type for all slice-based 256-bit types implementing many important traits, so types based on it can simply derive their implementations

Implementations

impl Slice32[src]

pub fn from_slice(slice: impl AsRef<[u8]>) -> Option<Slice32>[src]

pub fn to_vec(&self) -> Vec<u8>[src]

Trait Implementations

impl AsMut<<Slice32 as Wrapper>::Inner> for Slice32[src]

impl AsRef<<Slice32 as Wrapper>::Inner> for Slice32[src]

impl Borrow<<Slice32 as Wrapper>::Inner> for Slice32[src]

impl BorrowMut<<Slice32 as Wrapper>::Inner> for Slice32[src]

impl Clone for Slice32[src]

impl Copy for Slice32[src]

impl Debug for Slice32[src]

impl Default for Slice32[src]

impl Deref for Slice32[src]

type Target = Self::Inner

The resulting type after dereferencing.

impl DerefMut for Slice32[src]

impl Display for Slice32[src]

impl Eq for Slice32[src]

impl From<[u8; 32]> for Slice32[src]

impl From<HashLock> for Slice32[src]

impl From<HashPreimage> for Slice32[src]

impl From<Slice32> for HashLock[src]

impl From<Slice32> for HashPreimage[src]

impl FromHex for Slice32[src]

impl FromStr for Slice32[src]

type Err = Error

The associated error which can be returned from parsing.

impl Hash for Slice32[src]

impl LowerHex for Slice32[src]

impl Ord for Slice32[src]

impl PartialEq<Slice32> for Slice32[src]

impl PartialOrd<Slice32> for Slice32[src]

impl StrictDecode for Slice32[src]

impl StrictEncode for Slice32[src]

impl StructuralEq for Slice32[src]

impl StructuralPartialEq for Slice32[src]

impl UpperHex for Slice32[src]

impl Wrapper for Slice32[src]

type Inner = [u8; 32]

Inner type wrapped by the current newtype

Auto Trait Implementations

impl RefUnwindSafe for Slice32

impl Send for Slice32

impl Sync for Slice32

impl Unpin for Slice32

impl UnwindSafe for Slice32

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> ToHex for T where
    T: LowerHex

pub fn to_hex(&self) -> String

Outputs the hash in hexadecimal form

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.