pub enum PlanError {
DuplicateSlot(PaneSlot),
BadRatio(f32),
}Expand description
Why a LayoutPlan failed LayoutPlan::validate. Mirrors the
shipped crate::LayoutError discipline for the plan’s id space
(slots, not panes). A plan that fails to validate never reaches
realize, so a malformed definition can’t produce a broken live tree.
Variants§
DuplicateSlot(PaneSlot)
The same PaneSlot appears in two leaves — a slot fills exactly
one box, so aliasing would map two panes onto one position.
BadRatio(f32)
A split’s ratio is not in the open interval (0.0, 1.0).
Trait Implementations§
impl StructuralPartialEq for PlanError
Auto Trait Implementations§
impl Freeze for PlanError
impl RefUnwindSafe for PlanError
impl Send for PlanError
impl Sync for PlanError
impl Unpin for PlanError
impl UnsafeUnpin for PlanError
impl UnwindSafe for PlanError
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