pub struct M2dirEntry { /* private fields */ }Expand description
A single entry inside an crate::m2dir::types::M2dir.
Implementations§
Source§impl M2dirEntry
impl M2dirEntry
Sourcepub fn from_parts(id: impl Into<String>, path: impl Into<M2dirPath>) -> Self
pub fn from_parts(id: impl Into<String>, path: impl Into<M2dirPath>) -> Self
Builds an M2dirEntry from a path and its unique id without
checking the on-disk checksum. Used by coroutines that have
just delivered the entry and trust their own checksum.
Trait Implementations§
Source§impl Clone for M2dirEntry
impl Clone for M2dirEntry
Source§fn clone(&self) -> M2dirEntry
fn clone(&self) -> M2dirEntry
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 moreSource§impl Debug for M2dirEntry
impl Debug for M2dirEntry
impl Eq for M2dirEntry
Source§impl Ord for M2dirEntry
impl Ord for M2dirEntry
Source§fn cmp(&self, other: &M2dirEntry) -> Ordering
fn cmp(&self, other: &M2dirEntry) -> 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 M2dirEntry
impl PartialEq for M2dirEntry
Source§fn eq(&self, other: &M2dirEntry) -> bool
fn eq(&self, other: &M2dirEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for M2dirEntry
impl PartialOrd for M2dirEntry
impl StructuralPartialEq for M2dirEntry
Auto Trait Implementations§
impl Freeze for M2dirEntry
impl RefUnwindSafe for M2dirEntry
impl Send for M2dirEntry
impl Sync for M2dirEntry
impl Unpin for M2dirEntry
impl UnsafeUnpin for M2dirEntry
impl UnwindSafe for M2dirEntry
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