pub struct DropId(/* private fields */);Expand description
32-byte BLAKE3-derived drop identity.
Per §1.1: DropId = BLAKE3(plaintext). The display form is
b3:<base32-lower-no-pad> (multihash-compatible, multibase-decodable).
Identity is independent of every representation choice (§1.3).
Implementations§
Source§impl DropId
impl DropId
pub const fn from_bytes(bytes: [u8; 32]) -> Self
pub fn as_bytes(&self) -> &[u8; 32]
Sourcepub fn parse_text(s: &str) -> Option<Self>
pub fn parse_text(s: &str) -> Option<Self>
Parse the multihash text form b3:<base32-lower-no-pad>.
Returns None if the prefix, alphabet, or output length is wrong.
pub fn to_text(self) -> String
Trait Implementations§
impl Copy for DropId
impl Eq for DropId
Source§impl Ord for DropId
impl Ord for DropId
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for DropId
impl PartialOrd for DropId
impl StructuralPartialEq for DropId
Auto Trait Implementations§
impl Freeze for DropId
impl RefUnwindSafe for DropId
impl Send for DropId
impl Sync for DropId
impl Unpin for DropId
impl UnsafeUnpin for DropId
impl UnwindSafe for DropId
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