pub struct GuidRef<'a>(pub &'a [u8; 16]);Expand description
Reference to a Guid that can be created without allocating a Guid object. Used when comparing with NodeIds, to distinguish from the generic ByteString case.
Tuple Fields§
§0: &'a [u8; 16]Trait Implementations§
Source§impl IdentifierRef for GuidRef<'_>
impl IdentifierRef for GuidRef<'_>
Source§fn hash_as_identifier<H>(&self, state: &mut H)where
H: Hasher,
fn hash_as_identifier<H>(&self, state: &mut H)where
H: Hasher,
Hash the value as if it was in an identifier. This must result
in the same hash as the equivalent identifier.
Source§impl PartialEq<Identifier> for GuidRef<'_>
impl PartialEq<Identifier> for GuidRef<'_>
Auto Trait Implementations§
impl<'a> Freeze for GuidRef<'a>
impl<'a> RefUnwindSafe for GuidRef<'a>
impl<'a> Send for GuidRef<'a>
impl<'a> Sync for GuidRef<'a>
impl<'a> Unpin for GuidRef<'a>
impl<'a> UnsafeUnpin for GuidRef<'a>
impl<'a> UnwindSafe for GuidRef<'a>
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