pub struct DestinationHash(/* private fields */);Implementations§
Source§impl DestinationHash
impl DestinationHash
pub const fn new(bytes: [u8; 16]) -> DestinationHash
pub fn from_slice(bytes: &[u8]) -> Option<DestinationHash>
pub const fn as_bytes(&self) -> &[u8; 16]
pub const fn from_address(address: WireAddress) -> DestinationHash
pub const fn to_address(&self) -> WireAddress
Trait Implementations§
Source§impl Clone for DestinationHash
impl Clone for DestinationHash
Source§fn clone(&self) -> DestinationHash
fn clone(&self) -> DestinationHash
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DestinationHash
Source§impl Debug for DestinationHash
impl Debug for DestinationHash
impl Eq for DestinationHash
Source§impl IndexKey for DestinationHash
impl IndexKey for DestinationHash
fn lemire_key(&self) -> u64
Source§impl PartialEq for DestinationHash
impl PartialEq for DestinationHash
impl StructuralPartialEq for DestinationHash
Auto Trait Implementations§
impl Freeze for DestinationHash
impl RefUnwindSafe for DestinationHash
impl Send for DestinationHash
impl Sync for DestinationHash
impl Unpin for DestinationHash
impl UnsafeUnpin for DestinationHash
impl UnwindSafe for DestinationHash
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