#[non_exhaustive]pub enum TreeError {
Show 19 variants
RootNotSet,
RootAlreadySet,
RootMissing(NodeId),
PanelIdExhausted,
ArenaOverflow,
ArenaIndexOverflow,
MissingChild {
parent: NodeId,
child: NodeId,
},
NoParentEntry(NodeId),
ParentMissing {
parent: NodeId,
child: NodeId,
},
ParentChildMismatch {
parent: NodeId,
child: NodeId,
},
NoKinds,
ActiveOutOfBounds {
active: usize,
len: usize,
},
DashboardNoCards,
DashboardNoColumns,
WindowSizeZero,
EmptyAfterRebuild,
NoRoot,
ColumnsCountZero,
Dynamic(Box<str>),
}Expand description
Tree structure validation failure.
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.
RootNotSet
Root is not set.
RootAlreadySet
Root was already set.
RootMissing(NodeId)
Root node missing from arena.
PanelIdExhausted
Panel ID counter exhausted.
ArenaOverflow
Node arena size exceeds u32 capacity.
ArenaIndexOverflow
Node arena index exceeds u32 capacity.
MissingChild
A container references a missing child.
NoParentEntry(NodeId)
A node has no parent entry.
ParentMissing
A node’s parent is missing from the arena.
ParentChildMismatch
Parent-child mismatch between parent_map and children list.
NoKinds
At least one kind required.
ActiveOutOfBounds
Active index out of bounds.
DashboardNoCards
Dashboard requires at least one card.
DashboardNoColumns
Dashboard columns must be at least 1.
WindowSizeZero
Window size must be at least 1.
EmptyAfterRebuild
Tree empty after rebuild.
NoRoot
No root node.
ColumnsCountZero
Column count must be at least 1.
Dynamic(Box<str>)
Wrapped error from Taffy or other dynamic source.
Trait Implementations§
Source§impl Error for TreeError
impl Error for TreeError
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 TreeError
impl RefUnwindSafe for TreeError
impl Send for TreeError
impl Sync for TreeError
impl Unpin for TreeError
impl UnsafeUnpin for TreeError
impl UnwindSafe for TreeError
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