pub enum LayoutStep {
Intrinsics(Vec<LeafData>),
Heights(Vec<LeafData>, Vec<HeightRequest>),
Done(Box<LayoutOutput>),
Idle,
}Expand description
One step of a resumable layout pass (Surface::layout_begin).
Variants§
Intrinsics(Vec<LeafData>)
Measure these leaves’ intrinsics; answer with layout_intrinsics.
Heights(Vec<LeafData>, Vec<HeightRequest>)
Measure these heights; answer with layout_heights.
Done(Box<LayoutOutput>)
The pass is complete.
Idle
No pass in progress (an answer without layout_begin).
Trait Implementations§
Source§impl Clone for LayoutStep
impl Clone for LayoutStep
Source§impl Debug for LayoutStep
impl Debug for LayoutStep
Source§impl PartialEq for LayoutStep
impl PartialEq for LayoutStep
impl StructuralPartialEq for LayoutStep
Auto Trait Implementations§
impl Freeze for LayoutStep
impl RefUnwindSafe for LayoutStep
impl Send for LayoutStep
impl Sync for LayoutStep
impl Unpin for LayoutStep
impl UnsafeUnpin for LayoutStep
impl UnwindSafe for LayoutStep
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