#[non_exhaustive]pub enum QualityHierarchyError {
NodeOutOfRange,
ParentOutOfRange,
ChildOutOfRange,
LevelOutOfRange,
CostOutOfRange,
NodeNotIsolated,
SelfEdge,
EdgeAlreadyExists,
ChildAlreadyParented,
LevelOrderViolation,
CostOrderViolation,
}Expand description
A disabled quality-hierarchy transition.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NodeOutOfRange
A node index is outside the admitted node set.
ParentOutOfRange
A proposed parent index is outside the admitted node set.
ChildOutOfRange
A proposed child index is outside the admitted node set.
LevelOutOfRange
A proposed level exceeds the hierarchy ceiling.
CostOutOfRange
A proposed cost exceeds the hierarchy ceiling.
NodeNotIsolated
Node-property updates require an isolated node.
SelfEdge
A node cannot be its own child.
EdgeAlreadyExists
The exact parent-child edge already exists.
ChildAlreadyParented
The proposed child already has a parent.
LevelOrderViolation
Parent level must strictly exceed child level.
CostOrderViolation
Parent cost must not exceed child cost.
Trait Implementations§
Source§impl Clone for QualityHierarchyError
impl Clone for QualityHierarchyError
Source§fn clone(&self) -> QualityHierarchyError
fn clone(&self) -> QualityHierarchyError
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 moreimpl Copy for QualityHierarchyError
Source§impl Debug for QualityHierarchyError
impl Debug for QualityHierarchyError
Source§impl Display for QualityHierarchyError
impl Display for QualityHierarchyError
impl Eq for QualityHierarchyError
Source§impl Error for QualityHierarchyError
impl Error for QualityHierarchyError
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()
Source§impl PartialEq for QualityHierarchyError
impl PartialEq for QualityHierarchyError
impl StructuralPartialEq for QualityHierarchyError
Auto Trait Implementations§
impl Freeze for QualityHierarchyError
impl RefUnwindSafe for QualityHierarchyError
impl Send for QualityHierarchyError
impl Sync for QualityHierarchyError
impl Unpin for QualityHierarchyError
impl UnsafeUnpin for QualityHierarchyError
impl UnwindSafe for QualityHierarchyError
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