[][src]Struct casper_engine_test_support::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: [u8; 32]) -> AccountHash[src]

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

pub fn value(&self) -> [u8; 32][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.

pub fn to_formatted_string(&self) -> String[src]

Formats the AccountHash for users getting and putting.

pub fn from_formatted_str(input: &str) -> Result<AccountHash, FromStrError>[src]

Parses a string formatted as per Self::to_formatted_string() into an AccountHash.

Trait Implementations

impl AsRef<[u8]> for AccountHash[src]

impl CLTyped for AccountHash[src]

impl Clone for AccountHash[src]

impl Copy for AccountHash[src]

impl DataSize for AccountHash[src]

impl Debug for AccountHash[src]

impl<'de> Deserialize<'de> for AccountHash[src]

impl Display for AccountHash[src]

impl Eq for AccountHash[src]

impl From<PublicKey> for AccountHash[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 Serialize 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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> FromBits<T> for T

impl<T> Instrument 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> ToHex for T where
    T: AsRef<[u8]>, 
[src]

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,