pub enum PaneSplitterResizePlanError {
MissingSplit {
split: PaneId,
},
NotASplit {
node: PaneId,
},
AxisMismatch {
split: PaneId,
expected: SplitAxis,
actual: SplitAxis,
},
MissingLayoutRect {
node: PaneId,
},
InvalidRatio {
numerator: u32,
denominator: u32,
},
}Expand description
Errors while planning a directly-addressed splitter resize/nudge.
Unlike PaneEdgeResizePlanError (which is keyed by a leaf and walks to its
nearest ancestor split), these errors describe a PaneResizeTarget that
names a split node directly — the form produced by host splitter hit-testing
and the PaneDragResizeMachine.
Variants§
MissingSplit
The target split id is absent from the tree.
NotASplit
The target node exists but is a leaf, not a split.
AxisMismatch
The split exists but its axis disagrees with the target axis.
MissingLayoutRect
The current layout has no rectangle for the target split.
InvalidRatio
The derived ratio could not be constructed.
Trait Implementations§
Source§impl Clone for PaneSplitterResizePlanError
impl Clone for PaneSplitterResizePlanError
Source§fn clone(&self) -> PaneSplitterResizePlanError
fn clone(&self) -> PaneSplitterResizePlanError
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 moreimpl Copy for PaneSplitterResizePlanError
Source§impl Debug for PaneSplitterResizePlanError
impl Debug for PaneSplitterResizePlanError
impl Eq for PaneSplitterResizePlanError
Source§impl Error for PaneSplitterResizePlanError
impl Error for PaneSplitterResizePlanError
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 PartialEq for PaneSplitterResizePlanError
impl PartialEq for PaneSplitterResizePlanError
Source§fn eq(&self, other: &PaneSplitterResizePlanError) -> bool
fn eq(&self, other: &PaneSplitterResizePlanError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PaneSplitterResizePlanError
Auto Trait Implementations§
impl Freeze for PaneSplitterResizePlanError
impl RefUnwindSafe for PaneSplitterResizePlanError
impl Send for PaneSplitterResizePlanError
impl Sync for PaneSplitterResizePlanError
impl Unpin for PaneSplitterResizePlanError
impl UnsafeUnpin for PaneSplitterResizePlanError
impl UnwindSafe for PaneSplitterResizePlanError
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