pub struct LayoutTask {
pub layout: FlexLayout,
pub container: Rect,
pub items: Vec<FlexItem>,
}Expand description
A single layout task for layout_subtrees_parallel.
Encapsulates one independent subtree layout request: the flex spec, the
container rectangle, and the slice of items to lay out. The result is a
Vec<Rect> in the same order as items.
Fields§
§layout: FlexLayoutThe flexbox configuration to use.
container: RectThe container rectangle to lay out into.
items: Vec<FlexItem>The items to lay out inside the container.
Auto Trait Implementations§
impl Freeze for LayoutTask
impl RefUnwindSafe for LayoutTask
impl Send for LayoutTask
impl Sync for LayoutTask
impl Unpin for LayoutTask
impl UnsafeUnpin for LayoutTask
impl UnwindSafe for LayoutTask
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more