pub struct Reflection<Size>(/* private fields */);
Expand description
Intermediate format used for construction and inspection of HardlinkList
’s
internal content.
Guarantees:
- Every inode number is unique.
- The internal list is always sorted by inode numbers.
Equality: Reflection
implements PartialEq
and Eq
traits.
Serialization and deserialization: (feature: json
) Reflection
implements
Serialize
and Deserialize
traits, this allows functions in serde_json
to convert
a Reflection
into/from JSON.
Implementations§
Source§impl<Size> Reflection<Size>
impl<Size> Reflection<Size>
Trait Implementations§
Source§impl<Size: Clone> Clone for Reflection<Size>
impl<Size: Clone> Clone for Reflection<Size>
Source§fn clone(&self) -> Reflection<Size>
fn clone(&self) -> Reflection<Size>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<Size: Debug> Debug for Reflection<Size>
impl<Size: Debug> Debug for Reflection<Size>
Source§impl<'de, Size> Deserialize<'de> for Reflection<Size>where
Size: Deserialize<'de>,
impl<'de, Size> Deserialize<'de> for Reflection<Size>where
Size: Deserialize<'de>,
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<Size> From<HardlinkList<Size>> for Reflection<Size>
impl<Size> From<HardlinkList<Size>> for Reflection<Size>
Source§fn from(HardlinkList: HardlinkList<Size>) -> Self
fn from(HardlinkList: HardlinkList<Size>) -> Self
Converts to this type from the input type.
Source§impl<Size> From<Reflection<Size>> for Vec<ReflectionEntry<Size>>
impl<Size> From<Reflection<Size>> for Vec<ReflectionEntry<Size>>
Source§fn from(value: Reflection<Size>) -> Self
fn from(value: Reflection<Size>) -> Self
Converts to this type from the input type.
Source§impl<Size> From<Vec<ReflectionEntry<Size>>> for Reflection<Size>
impl<Size> From<Vec<ReflectionEntry<Size>>> for Reflection<Size>
Source§fn from(list: Vec<ReflectionEntry<Size>>) -> Self
fn from(list: Vec<ReflectionEntry<Size>>) -> Self
Sort the list by inode numbers, then create the reflection.
Source§impl<Size> IntoIterator for Reflection<Size>
impl<Size> IntoIterator for Reflection<Size>
Source§type Item = <Vec<ReflectionEntry<Size>> as IntoIterator>::Item
type Item = <Vec<ReflectionEntry<Size>> as IntoIterator>::Item
The type of the elements being iterated over.
Source§type IntoIter = <Vec<ReflectionEntry<Size>> as IntoIterator>::IntoIter
type IntoIter = <Vec<ReflectionEntry<Size>> as IntoIterator>::IntoIter
Which kind of iterator are we turning this into?
Source§impl<Size: PartialEq> PartialEq for Reflection<Size>
impl<Size: PartialEq> PartialEq for Reflection<Size>
Source§impl<Size> Serialize for Reflection<Size>where
Size: Serialize,
impl<Size> Serialize for Reflection<Size>where
Size: Serialize,
Source§impl<Size: Size> SummarizeHardlinks<Size> for &Reflection<Size>
impl<Size: Size> SummarizeHardlinks<Size> for &Reflection<Size>
Source§type Summary = Summary<Size>
type Summary = Summary<Size>
The result of
SummarizeHardlinks::summarize_hardlinks
.Source§fn summarize_hardlinks(self) -> Self::Summary
fn summarize_hardlinks(self) -> Self::Summary
Summarize into a summary of shared links and size.
Source§impl<Size> TryFrom<Reflection<Size>> for HardlinkList<Size>
impl<Size> TryFrom<Reflection<Size>> for HardlinkList<Size>
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
impl<Size: Eq> Eq for Reflection<Size>
impl<Size> StructuralPartialEq for Reflection<Size>
Auto Trait Implementations§
impl<Size> Freeze for Reflection<Size>
impl<Size> RefUnwindSafe for Reflection<Size>where
Size: RefUnwindSafe,
impl<Size> Send for Reflection<Size>where
Size: Send,
impl<Size> Sync for Reflection<Size>where
Size: Sync,
impl<Size> Unpin for Reflection<Size>where
Size: Unpin,
impl<Size> UnwindSafe for Reflection<Size>where
Size: UnwindSafe,
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> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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<X> Pipe for X
impl<X> Pipe for X
Source§fn pipe_ref<'a, Return, Function>(&'a self, f: Function) -> Returnwhere
Function: FnOnce(&'a Self) -> Return,
fn pipe_ref<'a, Return, Function>(&'a self, f: Function) -> Returnwhere
Function: FnOnce(&'a Self) -> Return,
Source§fn pipe_mut<'a, Return, Function>(&'a mut self, f: Function) -> Returnwhere
Function: FnOnce(&'a mut Self) -> Return,
fn pipe_mut<'a, Return, Function>(&'a mut self, f: Function) -> Returnwhere
Function: FnOnce(&'a mut Self) -> Return,
Source§fn pipe_as_ref<'a, Param, Return, Function>(&'a self, f: Function) -> Return
fn pipe_as_ref<'a, Param, Return, Function>(&'a self, f: Function) -> Return
Apply
f
to &self
where f
takes a single parameter of type Param
and Self
implements trait AsRef<Param>
. Read moreSource§fn pipe_as_mut<'a, Param, Return, Function>(&'a mut self, f: Function) -> Return
fn pipe_as_mut<'a, Param, Return, Function>(&'a mut self, f: Function) -> Return
Apply
f
to &mut self
where f
takes a single parameter of type Param
and Self
implements trait AsMut<Param>
. Read moreSource§fn pipe_deref<'a, Param, Return, Function>(&'a self, f: Function) -> Return
fn pipe_deref<'a, Param, Return, Function>(&'a self, f: Function) -> Return
Apply
f
to &self
where f
takes a single parameter of type Param
and Self
implements trait Deref<Target = Param>
. Read moreSource§fn pipe_deref_mut<'a, Param, Return, Function>(
&'a mut self,
f: Function,
) -> Returnwhere
Self: DerefMut<Target = Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a mut Param) -> Return,
fn pipe_deref_mut<'a, Param, Return, Function>(
&'a mut self,
f: Function,
) -> Returnwhere
Self: DerefMut<Target = Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a mut Param) -> Return,
Apply
f
to &mut self
where f
takes a single parameter of type Param
and Self
implements trait [DerefMut<Target = Param>
]. Read moreSource§fn pipe_borrow<'a, Param, Return, Function>(&'a self, f: Function) -> Return
fn pipe_borrow<'a, Param, Return, Function>(&'a self, f: Function) -> Return
Apply
f
to &self
where f
takes a single parameter of type Param
and Self
implements trait Borrow<Param>
. Read moreSource§fn pipe_borrow_mut<'a, Param, Return, Function>(
&'a mut self,
f: Function,
) -> Return
fn pipe_borrow_mut<'a, Param, Return, Function>( &'a mut self, f: Function, ) -> Return
Apply
f
to &mut self
where f
takes a single parameter of type Param
and Self
implements trait BorrowMut<Param>
. Read more