pub struct FlowLayout {
pub fragment_layouts: HashMap<String, Arc<UnifiedLayout>>,
pub remaining_items: Vec<ShapedItem>,
}Expand description
Represents the final layout distributed across multiple fragments.
Fields§
§fragment_layouts: HashMap<String, Arc<UnifiedLayout>>A map from a fragment’s unique ID to the layout it contains.
remaining_items: Vec<ShapedItem>Any items that did not fit into the last fragment in the flow chain. This is useful for pagination or determining if more layout space is needed.
Trait Implementations§
Source§impl Clone for FlowLayout
impl Clone for FlowLayout
Source§fn clone(&self) -> FlowLayout
fn clone(&self) -> FlowLayout
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FlowLayout
impl RefUnwindSafe for FlowLayout
impl Send for FlowLayout
impl Sync for FlowLayout
impl Unpin for FlowLayout
impl UnwindSafe for FlowLayout
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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