[−][src]Struct solana_libra_types::account_address::AccountAddress
A struct that represents an account address. Currently Public Key is used.
Methods
impl AccountAddress
[src]
pub fn new(address: [u8; 32]) -> Self
[src]
pub fn random() -> Self
[src]
pub fn short_str(&self) -> String
[src]
pub fn to_vec(&self) -> Vec<u8>
[src]
pub fn from_public_key<PublicKey: VerifyingKey>(public_key: &PublicKey) -> Self
[src]
Trait Implementations
impl Clone for AccountAddress
[src]
fn clone(&self) -> AccountAddress
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Ord for AccountAddress
[src]
fn cmp(&self, other: &AccountAddress) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
fn clamp(self, min: Self, max: Self) -> Self
[src]
clamp
)Restrict a value to a certain interval. Read more
impl AsRef<[u8]> for AccountAddress
[src]
impl Default for AccountAddress
[src]
fn default() -> AccountAddress
[src]
impl From<AccountAddress> for Vec<u8>
[src]
fn from(addr: AccountAddress) -> Vec<u8>
[src]
impl<'_> From<&'_ AccountAddress> for Vec<u8>
[src]
fn from(addr: &AccountAddress) -> Vec<u8>
[src]
impl From<AccountAddress> for Bytes
[src]
fn from(addr: AccountAddress) -> Bytes
[src]
impl From<PublicKey> for AccountAddress
[src]
fn from(public_key: LegacyPublicKey) -> AccountAddress
[src]
impl<'_> From<&'_ AccountAddress> for String
[src]
fn from(addr: &AccountAddress) -> String
[src]
impl PartialOrd<AccountAddress> for AccountAddress
[src]
fn partial_cmp(&self, other: &AccountAddress) -> Option<Ordering>
[src]
fn lt(&self, other: &AccountAddress) -> bool
[src]
fn le(&self, other: &AccountAddress) -> bool
[src]
fn gt(&self, other: &AccountAddress) -> bool
[src]
fn ge(&self, other: &AccountAddress) -> bool
[src]
impl PartialEq<AccountAddress> for AccountAddress
[src]
fn eq(&self, other: &AccountAddress) -> bool
[src]
fn ne(&self, other: &AccountAddress) -> bool
[src]
impl Copy for AccountAddress
[src]
impl Eq for AccountAddress
[src]
impl Display for AccountAddress
[src]
impl Debug for AccountAddress
[src]
impl Hash for AccountAddress
[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,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<'_> TryFrom<&'_ [u8]> for AccountAddress
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(bytes: &[u8]) -> Result<AccountAddress>
[src]
Tries to convert the provided byte array into Address.
impl<'_> TryFrom<&'_ [u8; 32]> for AccountAddress
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(bytes: &[u8; 32]) -> Result<AccountAddress>
[src]
Tries to convert the provided byte array into Address.
impl TryFrom<Vec<u8>> for AccountAddress
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(bytes: Vec<u8>) -> Result<AccountAddress>
[src]
Tries to convert the provided byte buffer into Address.
impl TryFrom<Bytes> for AccountAddress
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(bytes: Bytes) -> Result<AccountAddress>
[src]
impl TryFrom<String> for AccountAddress
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(s: String) -> Result<AccountAddress>
[src]
impl TryFrom<Bech32> for AccountAddress
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(encoded_input: Bech32) -> Result<AccountAddress>
[src]
impl TryFrom<AccountAddress> for Bech32
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(addr: AccountAddress) -> Result<Bech32>
[src]
impl FromStr for AccountAddress
[src]
type Err = Error
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self>
[src]
impl LowerHex for AccountAddress
[src]
impl CanonicalSerialize for AccountAddress
[src]
impl CanonicalDeserialize for AccountAddress
[src]
fn deserialize(deserializer: &mut impl CanonicalDeserializer) -> Result<Self>
[src]
impl<'de> Deserialize<'de> for AccountAddress
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for AccountAddress
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl CryptoHash for AccountAddress
[src]
type Hasher = AccountAddressHasher
The associated Hasher
type which comes with a unique salt for this type.
fn hash(&self) -> HashValue
[src]
impl IntoProto for AccountAddress
[src]
type ProtoType = Vec<u8>
The corresponding Protobuf type.
fn into_proto(self) -> Self::ProtoType
[src]
impl FromProto for AccountAddress
[src]
type ProtoType = Vec<u8>
The corresponding Protobuf type.
fn from_proto(addr: Self::ProtoType) -> Result<Self>
[src]
impl Arbitrary for AccountAddress
[src]
type Parameters = <[u8; 32] as Arbitrary>::Parameters
The type of parameters that [arbitrary_with
] accepts for configuration of the generated [Strategy
]. Parameters must implement [Default
]. Read more
type Strategy = Map<(<[u8; 32] as Arbitrary>::Strategy,), fn(_: ([u8; 32],)) -> Self>
The type of [Strategy
] used to generate values of type Self
. Read more
fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
[src]
fn arbitrary() -> Self::Strategy
[src]
Generates a [Strategy
] for producing arbitrary values of type the implementing type (Self
). Read more
Auto Trait Implementations
impl Sync for AccountAddress
impl Send for AccountAddress
impl Unpin for AccountAddress
impl RefUnwindSafe for AccountAddress
impl UnwindSafe for AccountAddress
Blanket Implementations
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> TestOnlyHash for T where
T: Serialize + ?Sized,
T: Serialize + ?Sized,
fn test_only_hash(&self) -> HashValue
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> Clear for T where
T: InitializableFromZeroed + ?Sized,
T: InitializableFromZeroed + ?Sized,
fn clear(&mut self)
impl<T> InitializableFromZeroed for T where
T: Default,
T: Default,
unsafe fn initialize(place: *mut T)
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> ToHex for T where
T: AsRef<[u8]>,
[src]
T: AsRef<[u8]>,
fn write_hex<W>(&self, w: &mut W) -> Result<(), Error> where
W: Write,
[src]
W: Write,
fn write_hex_upper<W>(&self, w: &mut W) -> Result<(), Error> where
W: Write,
[src]
W: Write,
impl<T> ToBase32<Vec<u5>> for T where
T: AsRef<[u8]>,
[src]
T: AsRef<[u8]>,
impl<'f, T> CheckBase32<Vec<u5>> for T where
T: AsRef<[u8]>,
[src]
T: AsRef<[u8]>,
type Err = Error
Error type if conversion fails
fn check_base32(self) -> Result<Vec<u5>, <T as CheckBase32<Vec<u5>>>::Err>
[src]
impl<T> Erased for T
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
T: Send + Sync + UnwindSafe + ?Sized,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,