#[non_exhaustive]pub enum CostRelationError {
NestingCycle {
repeated: EntityId,
path: Vec<EntityId>,
},
DepthExceeded {
at: EntityId,
limit: usize,
},
}Expand description
A refusal to resolve a cost relationship.
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.
NestingCycle
A nesting cycle was found: the item is its own ancestor.
Fields
DepthExceeded
The tree exceeded MAX_NESTING_DEPTH without terminating.
Trait Implementations§
Source§impl Clone for CostRelationError
impl Clone for CostRelationError
Source§fn clone(&self) -> CostRelationError
fn clone(&self) -> CostRelationError
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 CostRelationError
impl Debug for CostRelationError
impl Eq for CostRelationError
Source§impl PartialEq for CostRelationError
impl PartialEq for CostRelationError
impl StructuralPartialEq for CostRelationError
Auto Trait Implementations§
impl Freeze for CostRelationError
impl RefUnwindSafe for CostRelationError
impl Send for CostRelationError
impl Sync for CostRelationError
impl Unpin for CostRelationError
impl UnsafeUnpin for CostRelationError
impl UnwindSafe for CostRelationError
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