Enum parallel_disk_usage::data_tree::reflection::ConversionError [−][src]
#[non_exhaustive] pub enum ConversionError<Name, Data: Size> { ExcessiveChildren { path: VecDeque<Name>, data: Data, children: Vec<Reflection<Name, Data>>, children_sum: Data, }, }
Expand description
Error that occurs when an attempt to convert a Reflection
into a
DataTree
fails.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
When a node’s data is less than the sum of its children.
Fields of ExcessiveChildren
path: VecDeque<Name>
Path from root to the node.
data: Data
Data hold by the node.
children: Vec<Reflection<Name, Data>>
Children of the node.
children_sum: Data
Sum of data hold by children of the node.
Trait Implementations
impl<Name: PartialEq, Data: PartialEq + Size> PartialEq<ConversionError<Name, Data>> for ConversionError<Name, Data>
impl<Name: PartialEq, Data: PartialEq + Size> PartialEq<ConversionError<Name, Data>> for ConversionError<Name, Data>
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<Name, Data> RefUnwindSafe for ConversionError<Name, Data> where
Data: RefUnwindSafe,
Name: RefUnwindSafe,
impl<Name, Data> Send for ConversionError<Name, Data> where
Data: Send,
Name: Send,
impl<Name, Data> Sync for ConversionError<Name, Data> where
Data: Sync,
Name: Sync,
impl<Name, Data> Unpin for ConversionError<Name, Data> where
Data: Unpin,
Name: Unpin,
impl<Name, Data> UnwindSafe for ConversionError<Name, Data> where
Data: UnwindSafe,
Name: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Apply f
to self
. Read more
Apply f
to &self
. Read more
Apply f
to &mut self
. Read more
Apply f
to &self
where f
takes a single parameter of type Param
and Self
implements trait AsRef<Param>
. Read more
Apply f
to &mut self
where f
takes a single parameter of type Param
and Self
implements trait AsMut<Param>
. Read more
Apply f
to &self
where f
takes a single parameter of type Param
and Self
implements trait Deref<Param>
. Read more
Apply f
to &mut self
where f
takes a single parameter of type Param
and Self
implements trait DerefMut<Param>
. Read more
Apply f
to &self
where f
takes a single parameter of type Param
and Self
implements trait Deref<Param>
. Read more
Apply f
to &mut self
where f
takes a single parameter of type Param
and Self
implements trait DerefMut<Param>
. Read more