pub enum PruneError {
MultipleParents {
node: String,
parent1: String,
parent2: String,
},
NoParent {
node: String,
},
CycleDetected,
NoRootNode,
}Expand description
Error type for graph pruning operations
Variants§
MultipleParents
Node has multiple parents (malformed graph)
NoParent
Node has no parent but is not root (disconnected)
CycleDetected
Edge traversal hit depth limit (likely cycle)
NoRootNode
Graph has no root node
Trait Implementations§
Source§impl Clone for PruneError
impl Clone for PruneError
Source§fn clone(&self) -> PruneError
fn clone(&self) -> PruneError
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 PruneError
impl Debug for PruneError
Source§impl Display for PruneError
impl Display for PruneError
Source§impl Error for PruneError
impl Error for PruneError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for PruneError
impl RefUnwindSafe for PruneError
impl Send for PruneError
impl Sync for PruneError
impl Unpin for PruneError
impl UnsafeUnpin for PruneError
impl UnwindSafe for PruneError
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