[−][src]Struct casper_engine_test_support::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]
pub fn clone(&self) -> AccountHash
[src]
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<'de> Deserialize<'de> for AccountHash
[src]
pub fn deserialize<D>(
deserializer: D
) -> Result<AccountHash, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
[src]
deserializer: D
) -> Result<AccountHash, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
impl Display for AccountHash
[src]
impl Eq for AccountHash
[src]
impl From<PublicKey> for AccountHash
[src]
pub fn from(public_key: PublicKey) -> AccountHash
[src]
impl FromBytes for AccountHash
[src]
pub fn from_bytes(bytes: &[u8]) -> Result<(AccountHash, &[u8]), Error>
[src]
fn from_vec(bytes: Vec<u8>) -> Result<(Self, Vec<u8>), Error>
[src]
impl Hash for AccountHash
[src]
pub fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
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]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]
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]
pub fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
[src]
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
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]
fn into_bytes(self) -> Result<Vec<u8>, Error>
[src]
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<AccountHash, TryFromSliceForAccountHashError>
[src]
bytes: &[u8]
) -> Result<AccountHash, TryFromSliceForAccountHashError>
impl<'_> TryFrom<&'_ Vec<u8>> for AccountHash
[src]
type Error = TryFromSliceForAccountHashError
The type returned in the event of a conversion error.
pub fn try_from(
bytes: &Vec<u8>
) -> Result<AccountHash, <AccountHash as TryFrom<&'_ Vec<u8>>>::Error>
[src]
bytes: &Vec<u8>
) -> Result<AccountHash, <AccountHash as TryFrom<&'_ Vec<u8>>>::Error>
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,
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> FromBits<T> for T
pub fn from_bits(other: T) -> T
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[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>,