[−][src]Struct casper_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.
pub fn to_formatted_string(&self) -> String[src]
Formats the AccountHash for users getting and putting.
pub fn from_formatted_str(input: &str) -> Result<Self, 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]
pub fn clone(&self) -> AccountHash[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for AccountHash[src]
impl DataSize for AccountHash[src]
pub const IS_DYNAMIC: bool[src]
pub const STATIC_HEAP_SIZE: usize[src]
pub fn estimate_heap_size(&self) -> usize[src]
impl Debug for AccountHash[src]
impl Default for AccountHash[src]
pub fn default() -> AccountHash[src]
impl<'de> Deserialize<'de> for AccountHash[src]
pub fn deserialize<D: Deserializer<'de>>(
deserializer: D
) -> Result<Self, D::Error>[src]
deserializer: D
) -> Result<Self, D::Error>
impl Display for AccountHash[src]
impl Eq for AccountHash[src]
impl From<&'_ PublicKey> for AccountHash[src]
impl From<AccountHash> for Key[src]
pub fn from(account_hash: AccountHash) -> Key[src]
impl FromBytes for AccountHash[src]
pub fn from_bytes(bytes: &[u8]) -> Result<(Self, &[u8]), Error>[src]
pub fn from_vec(bytes: Vec<u8>) -> Result<(Self, Vec<u8>), Error>[src]
impl Hash for AccountHash[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl Ord for AccountHash[src]
pub fn cmp(&self, other: &AccountHash) -> Ordering[src]
#[must_use]pub fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self1.50.0[src]
impl PartialEq<AccountHash> for AccountHash[src]
pub fn eq(&self, other: &AccountHash) -> bool[src]
pub fn ne(&self, other: &AccountHash) -> bool[src]
impl PartialOrd<AccountHash> for AccountHash[src]
pub fn partial_cmp(&self, other: &AccountHash) -> Option<Ordering>[src]
pub fn lt(&self, other: &AccountHash) -> bool[src]
pub fn le(&self, other: &AccountHash) -> bool[src]
pub fn gt(&self, other: &AccountHash) -> bool[src]
pub fn ge(&self, other: &AccountHash) -> bool[src]
impl Serialize for AccountHash[src]
impl StructuralEq for AccountHash[src]
impl StructuralPartialEq for AccountHash[src]
impl ToBytes for AccountHash[src]
pub fn to_bytes(&self) -> Result<Vec<u8>, Error>[src]
pub fn serialized_length(&self) -> usize[src]
pub 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.
pub fn try_from(bytes: &[u8]) -> Result<Self, TryFromSliceForAccountHashError>[src]
impl TryFrom<&'_ Vec<u8, Global>> for AccountHash[src]
Auto Trait Implementations
impl RefUnwindSafe for AccountHash[src]
impl Send for AccountHash[src]
impl Sync for AccountHash[src]
impl Unpin for AccountHash[src]
impl UnwindSafe for AccountHash[src]
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,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> 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> ToHex for T where
T: AsRef<[u8]>, [src]
T: AsRef<[u8]>,
pub fn encode_hex<U>(&self) -> U where
U: FromIterator<char>, [src]
U: FromIterator<char>,
pub fn encode_hex_upper<U>(&self) -> U where
U: FromIterator<char>, [src]
U: FromIterator<char>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub 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.
pub 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,