pub struct RepresentationId(/* private fields */);Expand description
Stable identity of an encoded or derived asset representation.
Implementations§
Source§impl RepresentationId
impl RepresentationId
Sourcepub const fn from_bytes(bytes: [u8; 16]) -> Self
pub const fn from_bytes(bytes: [u8; 16]) -> Self
Creates an identity from its stable 16-byte representation.
Sourcepub const fn into_bytes(self) -> [u8; 16]
pub const fn into_bytes(self) -> [u8; 16]
Returns the stable 16-byte representation.
Trait Implementations§
Source§impl Clone for RepresentationId
impl Clone for RepresentationId
Source§fn clone(&self) -> RepresentationId
fn clone(&self) -> RepresentationId
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 RepresentationId
Source§impl Debug for RepresentationId
impl Debug for RepresentationId
Source§impl Default for RepresentationId
impl Default for RepresentationId
Source§impl Display for RepresentationId
impl Display for RepresentationId
impl Eq for RepresentationId
Source§impl FromStr for RepresentationId
impl FromStr for RepresentationId
Source§impl Hash for RepresentationId
impl Hash for RepresentationId
Source§impl Ord for RepresentationId
impl Ord for RepresentationId
Source§fn cmp(&self, other: &RepresentationId) -> Ordering
fn cmp(&self, other: &RepresentationId) -> Ordering
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
Source§impl PartialEq for RepresentationId
impl PartialEq for RepresentationId
Source§fn eq(&self, other: &RepresentationId) -> bool
fn eq(&self, other: &RepresentationId) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for RepresentationId
impl PartialOrd for RepresentationId
impl StructuralPartialEq for RepresentationId
Auto Trait Implementations§
impl Freeze for RepresentationId
impl RefUnwindSafe for RepresentationId
impl Send for RepresentationId
impl Sync for RepresentationId
impl Unpin for RepresentationId
impl UnsafeUnpin for RepresentationId
impl UnwindSafe for RepresentationId
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