pub struct AdvertisementHash(/* private fields */);Implementations§
Source§impl AdvertisementHash
impl AdvertisementHash
pub fn for_advertisement(packed_advertisement: &[u8]) -> AdvertisementHash
pub const fn from_hash(hash: [u8; 32]) -> AdvertisementHash
pub const fn as_bytes(&self) -> &[u8; 32]
Trait Implementations§
Source§impl Debug for AdvertisementHash
impl Debug for AdvertisementHash
impl Eq for AdvertisementHash
Source§impl PartialEq for AdvertisementHash
impl PartialEq for AdvertisementHash
impl StructuralPartialEq for AdvertisementHash
Auto Trait Implementations§
impl Freeze for AdvertisementHash
impl RefUnwindSafe for AdvertisementHash
impl Send for AdvertisementHash
impl Sync for AdvertisementHash
impl Unpin for AdvertisementHash
impl UnsafeUnpin for AdvertisementHash
impl UnwindSafe for AdvertisementHash
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