pub enum LayoutError {
InsufficientSpace,
InvalidPercentages,
ConstraintConflict,
}Expand description
The possible error results that can occur during layout calculation.
Variants§
InsufficientSpace
Indicates that at least one constraint (e.g., a Fixed or Range with too high min)
could not fit within the allocated space.
InvalidPercentages
Occurs when Percentage constraints sum up to more than 100%, or a percentage
value is outside the 0.0-100.0 range.
ConstraintConflict
Reserved for potential future conflicts where constraints are logically impossible
to satisfy simultaneously (currently not explicitly triggered by resolve_constraints).
Trait Implementations§
Source§impl Debug for LayoutError
impl Debug for LayoutError
Source§impl PartialEq for LayoutError
impl PartialEq for LayoutError
impl Eq for LayoutError
impl StructuralPartialEq for LayoutError
Auto Trait Implementations§
impl Freeze for LayoutError
impl RefUnwindSafe for LayoutError
impl Send for LayoutError
impl Sync for LayoutError
impl Unpin for LayoutError
impl UnwindSafe for LayoutError
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