[][src]Struct casperlabs_types::account::AccountHash

pub struct AccountHash(_);

A newtype wrapping a AccountHashBytes which is the raw bytes of the AccountHash, a hash of Public Key and Algorithm

Implementations

impl AccountHash[src]

pub const fn new(value: AccountHashBytes) -> AccountHash[src]

Constructs a new AccountHash instance from the raw bytes of an Public Key Account Hash.

pub fn value(&self) -> AccountHashBytes[src]

Returns the raw bytes of the account hash as an array.

pub fn as_bytes(&self) -> &[u8][src]

Returns the raw bytes of the account hash as a slice.

Trait Implementations

impl CLTyped for AccountHash[src]

impl Clone for AccountHash[src]

impl Copy for AccountHash[src]

impl Debug for AccountHash[src]

impl Display for AccountHash[src]

impl Eq for AccountHash[src]

impl From<AccountHash> for Key[src]

impl FromBytes for AccountHash[src]

impl Hash for AccountHash[src]

impl Ord for AccountHash[src]

impl PartialEq<AccountHash> for AccountHash[src]

impl PartialOrd<AccountHash> for AccountHash[src]

impl StructuralEq for AccountHash[src]

impl StructuralPartialEq for AccountHash[src]

impl ToBytes for AccountHash[src]

impl<'_> TryFrom<&'_ [u8]> for AccountHash[src]

type Error = TryFromSliceForAccountHashError

The type returned in the event of a conversion error.

impl<'_> TryFrom<&'_ Vec<u8>> for AccountHash[src]

type Error = TryFromSliceForAccountHashError

The type returned in the event of a conversion error.

Auto Trait Implementations

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> Same<T> for T

type Output = T

Should always be Self

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.