[−][src]Struct casperlabs_types::account::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]
fn clone(&self) -> AccountHash
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
fn from(account_hash: AccountHash) -> Key
[src]
impl FromBytes for AccountHash
[src]
fn from_bytes(bytes: &[u8]) -> Result<(Self, &[u8]), Error>
[src]
fn from_vec(bytes: Vec<u8>) -> Result<(Self, Vec<u8>), Error>
[src]
impl Hash for AccountHash
[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 Ord for AccountHash
[src]
fn cmp(&self, other: &AccountHash) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<AccountHash> for AccountHash
[src]
fn eq(&self, other: &AccountHash) -> bool
[src]
fn ne(&self, other: &AccountHash) -> bool
[src]
impl PartialOrd<AccountHash> for AccountHash
[src]
fn partial_cmp(&self, other: &AccountHash) -> Option<Ordering>
[src]
fn lt(&self, other: &AccountHash) -> bool
[src]
fn le(&self, other: &AccountHash) -> bool
[src]
fn gt(&self, other: &AccountHash) -> bool
[src]
fn ge(&self, other: &AccountHash) -> bool
[src]
impl StructuralEq for AccountHash
[src]
impl StructuralPartialEq for AccountHash
[src]
impl ToBytes for AccountHash
[src]
fn to_bytes(&self) -> Result<Vec<u8>, Error>
[src]
fn serialized_length(&self) -> usize
[src]
fn into_bytes(self) -> Result<Vec<u8>, Error> where
Self: Sized,
[src]
Self: Sized,
impl<'_> TryFrom<&'_ [u8]> for AccountHash
[src]
type Error = TryFromSliceForAccountHashError
The type returned in the event of a conversion error.
fn try_from(bytes: &[u8]) -> Result<Self, TryFromSliceForAccountHashError>
[src]
impl<'_> TryFrom<&'_ Vec<u8>> for AccountHash
[src]
Auto Trait Implementations
impl RefUnwindSafe for AccountHash
impl Send for AccountHash
impl Sync for AccountHash
impl Unpin for AccountHash
impl UnwindSafe for AccountHash
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> 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> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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>,