pub enum DryLayoutFailure<'a> {
Reason(&'a str),
Error(&'a str),
}Expand description
Why a box cannot compute a dry layout, for
RenderBox::debug_cannot_compute_dry_layout.
Flutter’s debugCannotComputeDryLayout takes a reason or an error, exactly one of them.
Variants§
Reason(&'a str)
The box does not implement dry layout; the panic names the box and adds this reason.
Error(&'a str)
The box cannot lay out with the given constraints; the panic is this error.
Trait Implementations§
Source§impl<'a> Clone for DryLayoutFailure<'a>
impl<'a> Clone for DryLayoutFailure<'a>
impl<'a> Copy for DryLayoutFailure<'a>
Auto Trait Implementations§
impl<'a> Freeze for DryLayoutFailure<'a>
impl<'a> RefUnwindSafe for DryLayoutFailure<'a>
impl<'a> Send for DryLayoutFailure<'a>
impl<'a> Sync for DryLayoutFailure<'a>
impl<'a> Unpin for DryLayoutFailure<'a>
impl<'a> UnsafeUnpin for DryLayoutFailure<'a>
impl<'a> UnwindSafe for DryLayoutFailure<'a>
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