pub enum PaneModelError {
Show 19 variants
ZeroPaneId,
UnsupportedSchemaVersion {
version: u16,
},
DuplicateNodeId {
node_id: PaneId,
},
MissingRoot {
root: PaneId,
},
RootHasParent {
root: PaneId,
parent: PaneId,
},
MissingParent {
node_id: PaneId,
parent: PaneId,
},
MissingChild {
parent: PaneId,
child: PaneId,
},
MultipleParents {
child: PaneId,
first_parent: PaneId,
second_parent: PaneId,
},
ParentMismatch {
node_id: PaneId,
expected: Option<PaneId>,
actual: Option<PaneId>,
},
SelfReferentialSplit {
node_id: PaneId,
},
DuplicateSplitChildren {
node_id: PaneId,
child: PaneId,
},
InvalidSplitRatio {
numerator: u32,
denominator: u32,
},
InvalidConstraint {
node_id: PaneId,
axis: &'static str,
min: u16,
max: u16,
},
NodeConstraintUnsatisfied {
node_id: PaneId,
axis: &'static str,
actual: u16,
min: u16,
max: Option<u16>,
},
OverconstrainedSplit {
node_id: PaneId,
axis: SplitAxis,
available: u16,
first_min: u16,
first_max: u16,
second_min: u16,
second_max: u16,
},
CycleDetected {
node_id: PaneId,
},
UnreachableNode {
node_id: PaneId,
},
NextIdNotGreaterThanExisting {
next_id: PaneId,
max_existing: PaneId,
},
PaneIdOverflow {
current: PaneId,
},
}Expand description
Validation errors for pane schema construction.
Variants§
ZeroPaneId
UnsupportedSchemaVersion
DuplicateNodeId
MissingRoot
RootHasParent
MissingParent
MissingChild
MultipleParents
ParentMismatch
SelfReferentialSplit
DuplicateSplitChildren
InvalidSplitRatio
InvalidConstraint
NodeConstraintUnsatisfied
OverconstrainedSplit
Fields
CycleDetected
UnreachableNode
NextIdNotGreaterThanExisting
PaneIdOverflow
Trait Implementations§
Source§impl Clone for PaneModelError
impl Clone for PaneModelError
Source§fn clone(&self) -> PaneModelError
fn clone(&self) -> PaneModelError
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 PaneModelError
impl Debug for PaneModelError
Source§impl Display for PaneModelError
impl Display for PaneModelError
Source§impl Error for PaneModelError
impl Error for PaneModelError
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 From<PaneModelError> for WorkspaceValidationError
impl From<PaneModelError> for WorkspaceValidationError
Source§fn from(err: PaneModelError) -> Self
fn from(err: PaneModelError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PaneModelError
impl PartialEq for PaneModelError
impl Eq for PaneModelError
impl StructuralPartialEq for PaneModelError
Auto Trait Implementations§
impl Freeze for PaneModelError
impl RefUnwindSafe for PaneModelError
impl Send for PaneModelError
impl Sync for PaneModelError
impl Unpin for PaneModelError
impl UnsafeUnpin for PaneModelError
impl UnwindSafe for PaneModelError
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