#[non_exhaustive]pub enum PaneError {
PanelNotFound(PanelId),
InvalidConstraint(Box<str>),
NodeNotFound(NodeId),
InvalidTree(Box<str>),
InvalidViewport(Box<str>),
InvalidMutation(Box<str>),
SequenceOutOfBounds(usize, usize),
}Expand description
Errors arising from layout operations on panels and nodes.
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.
PanelNotFound(PanelId)
A panel ID does not exist in the tree.
InvalidConstraint(Box<str>)
A constraint value is invalid (NaN, negative, mutually exclusive).
NodeNotFound(NodeId)
A node ID does not exist in the arena.
InvalidTree(Box<str>)
The tree structure is invalid or incomplete.
InvalidViewport(Box<str>)
Viewport dimensions are invalid (NaN, negative, infinite).
InvalidMutation(Box<str>)
A mutation is not supported for the current strategy.
SequenceOutOfBounds(usize, usize)
A sequence index is out of bounds.
Trait Implementations§
Source§impl Error for PaneError
impl Error for PaneError
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 PaneError
impl RefUnwindSafe for PaneError
impl Send for PaneError
impl Sync for PaneError
impl Unpin for PaneError
impl UnsafeUnpin for PaneError
impl UnwindSafe for PaneError
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