pub struct Tag(/* private fields */);Expand description
The 128 bit shape tag.
Half of a BLAKE3 hash, which is enough: the tag is compared, never searched for, and a collision would need two descriptions someone deliberately built to collide.
Implementations§
Source§impl Tag
impl Tag
Sourcepub fn for_type<T>() -> Tag
pub fn for_type<T>() -> Tag
The tag of T, which is the call a typed handle makes when it opens.
Sourcepub const fn from_bytes(bytes: [u8; 16]) -> Tag
pub const fn from_bytes(bytes: [u8; 16]) -> Tag
A tag read back out of the catalogue.
Sourcepub fn is_untyped(&self) -> bool
pub fn is_untyped(&self) -> bool
Whether this is the untyped tag, meaning the collection was created
over RESP3 and is checked per element instead (15 section 3.3).
Trait Implementations§
impl Copy for Tag
impl Eq for Tag
impl StructuralPartialEq for Tag
Auto Trait Implementations§
impl Freeze for Tag
impl RefUnwindSafe for Tag
impl Send for Tag
impl Sync for Tag
impl Unpin for Tag
impl UnsafeUnpin for Tag
impl UnwindSafe for Tag
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