pub struct AddressHash(/* private fields */);Implementations§
Source§impl AddressHash
impl AddressHash
pub const fn new(hash: [u8; 16]) -> Self
pub fn new_from_slice(data: &[u8]) -> Self
pub fn new_from_hash(hash: &Hash) -> Self
pub fn new_from_rand<R: CryptoRngCore>(rng: R) -> Self
pub fn new_from_hex_string(hex_string: &str) -> Result<Self, RnsError>
pub const fn new_empty() -> Self
pub fn as_slice(&self) -> &[u8] ⓘ
pub fn as_mut_slice(&mut self) -> &mut [u8] ⓘ
pub const fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn to_hex_string(&self) -> String
Source§impl AddressHash
impl AddressHash
pub fn deserialize( buffer: &mut InputBuffer<'_>, ) -> Result<AddressHash, RnsError>
Trait Implementations§
Source§impl Clone for AddressHash
impl Clone for AddressHash
Source§fn clone(&self) -> AddressHash
fn clone(&self) -> AddressHash
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AddressHash
impl Debug for AddressHash
Source§impl Default for AddressHash
impl Default for AddressHash
Source§impl Display for AddressHash
impl Display for AddressHash
Source§impl From<Hash> for AddressHash
impl From<Hash> for AddressHash
Source§impl Hash for AddressHash
impl Hash for AddressHash
Source§impl Ord for AddressHash
impl Ord for AddressHash
Source§fn cmp(&self, other: &AddressHash) -> Ordering
fn cmp(&self, other: &AddressHash) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AddressHash
impl PartialEq for AddressHash
Source§impl PartialOrd for AddressHash
impl PartialOrd for AddressHash
Source§impl Serialize for AddressHash
impl Serialize for AddressHash
impl Copy for AddressHash
impl Eq for AddressHash
impl StructuralPartialEq for AddressHash
Auto Trait Implementations§
impl Freeze for AddressHash
impl RefUnwindSafe for AddressHash
impl Send for AddressHash
impl Sync for AddressHash
impl Unpin for AddressHash
impl UnsafeUnpin for AddressHash
impl UnwindSafe for AddressHash
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more