pub struct SnapshotId(Id);Expand description
An Id identifying a concat! (“repository file of type”, stringify! (FileType::Snapshot))
Tuple Fields§
§0: IdImplementations§
Source§impl SnapshotId
impl SnapshotId
Sourcepub fn into_inner(self) -> Id
pub fn into_inner(self) -> Id
impl into_inner
Methods from Deref<Target = Id>§
Trait Implementations§
Source§impl Clone for SnapshotId
impl Clone for SnapshotId
Source§fn clone(&self) -> SnapshotId
fn clone(&self) -> SnapshotId
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 SnapshotId
impl Debug for SnapshotId
Source§impl Default for SnapshotId
impl Default for SnapshotId
Source§fn default() -> SnapshotId
fn default() -> SnapshotId
Returns the “default value” for a type. Read more
Source§impl Deref for SnapshotId
impl Deref for SnapshotId
Source§impl<'de> Deserialize<'de> for SnapshotId
impl<'de> Deserialize<'de> for SnapshotId
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for SnapshotId
impl Display for SnapshotId
Source§impl From<Id> for SnapshotId
impl From<Id> for SnapshotId
Source§impl FromStr for SnapshotId
impl FromStr for SnapshotId
Source§impl Hash for SnapshotId
impl Hash for SnapshotId
Source§impl Ord for SnapshotId
impl Ord for SnapshotId
Source§fn cmp(&self, other: &SnapshotId) -> Ordering
fn cmp(&self, other: &SnapshotId) -> 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 SnapshotId
impl PartialEq for SnapshotId
Source§fn eq(&self, other: &SnapshotId) -> bool
fn eq(&self, other: &SnapshotId) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for SnapshotId
impl PartialOrd for SnapshotId
Source§impl RepoId for SnapshotId
impl RepoId for SnapshotId
Source§impl Serialize for SnapshotId
impl Serialize for SnapshotId
impl Copy for SnapshotId
impl Eq for SnapshotId
impl StructuralPartialEq for SnapshotId
Auto Trait Implementations§
impl Freeze for SnapshotId
impl RefUnwindSafe for SnapshotId
impl Send for SnapshotId
impl Sync for SnapshotId
impl Unpin for SnapshotId
impl UnsafeUnpin for SnapshotId
impl UnwindSafe for SnapshotId
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<T> CustomError for T
impl<T> CustomError for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ToEcoString for T
impl<T> ToEcoString for T
Source§fn to_eco_string(&self) -> EcoString
fn to_eco_string(&self) -> EcoString
Converts the given value to an
EcoString.