pub enum PaneOperationFailure {
MissingNode {
node_id: PaneId,
},
NodeNotLeaf {
node_id: PaneId,
},
ParentNotSplit {
node_id: PaneId,
},
ParentChildMismatch {
parent: PaneId,
child: PaneId,
},
CannotCloseRoot {
node_id: PaneId,
},
CannotMoveRoot {
node_id: PaneId,
},
SameNode {
first: PaneId,
second: PaneId,
},
AncestorConflict {
ancestor: PaneId,
descendant: PaneId,
},
TargetRemovedByDetach {
target: PaneId,
detached_parent: PaneId,
},
PaneIdOverflow {
current: PaneId,
},
InvalidRatio {
node_id: PaneId,
numerator: u32,
denominator: u32,
},
Validation(PaneModelError),
}Expand description
Structured reasons for pane operation failure.
Variants§
MissingNode
NodeNotLeaf
ParentNotSplit
ParentChildMismatch
CannotCloseRoot
CannotMoveRoot
SameNode
AncestorConflict
TargetRemovedByDetach
PaneIdOverflow
InvalidRatio
Validation(PaneModelError)
Trait Implementations§
Source§impl Clone for PaneOperationFailure
impl Clone for PaneOperationFailure
Source§fn clone(&self) -> PaneOperationFailure
fn clone(&self) -> PaneOperationFailure
Returns a duplicate of the value. Read more
1.0.0 · 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 PaneOperationFailure
impl Debug for PaneOperationFailure
Source§impl Display for PaneOperationFailure
impl Display for PaneOperationFailure
Source§impl Error for PaneOperationFailure
impl Error for PaneOperationFailure
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 PaneOperationFailure
impl PartialEq for PaneOperationFailure
impl Eq for PaneOperationFailure
impl StructuralPartialEq for PaneOperationFailure
Auto Trait Implementations§
impl Freeze for PaneOperationFailure
impl RefUnwindSafe for PaneOperationFailure
impl Send for PaneOperationFailure
impl Sync for PaneOperationFailure
impl Unpin for PaneOperationFailure
impl UnsafeUnpin for PaneOperationFailure
impl UnwindSafe for PaneOperationFailure
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