pub struct MediaRootId(/* private fields */);Expand description
Stable identity of a configured resolver search root.
Implementations§
Source§impl MediaRootId
impl MediaRootId
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 MediaRootId
impl Clone for MediaRootId
Source§fn clone(&self) -> MediaRootId
fn clone(&self) -> MediaRootId
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 MediaRootId
Source§impl Debug for MediaRootId
impl Debug for MediaRootId
Source§impl Default for MediaRootId
impl Default for MediaRootId
Source§impl Display for MediaRootId
impl Display for MediaRootId
impl Eq for MediaRootId
Source§impl FromStr for MediaRootId
impl FromStr for MediaRootId
Source§impl Hash for MediaRootId
impl Hash for MediaRootId
Source§impl Ord for MediaRootId
impl Ord for MediaRootId
Source§fn cmp(&self, other: &MediaRootId) -> Ordering
fn cmp(&self, other: &MediaRootId) -> 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 MediaRootId
impl PartialEq for MediaRootId
Source§fn eq(&self, other: &MediaRootId) -> bool
fn eq(&self, other: &MediaRootId) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for MediaRootId
impl PartialOrd for MediaRootId
impl StructuralPartialEq for MediaRootId
Auto Trait Implementations§
impl Freeze for MediaRootId
impl RefUnwindSafe for MediaRootId
impl Send for MediaRootId
impl Sync for MediaRootId
impl Unpin for MediaRootId
impl UnsafeUnpin for MediaRootId
impl UnwindSafe for MediaRootId
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