pub struct LayoutCacheEntry {
pub available_size: LogicalSize,
pub result_size: LogicalSize,
pub content_size: LogicalSize,
pub child_positions: Vec<(usize, LogicalPosition)>,
pub escaped_top_margin: Option<f32>,
pub escaped_bottom_margin: Option<f32>,
pub scrollbar_info: ScrollbarRequirements,
}Expand description
Cache entry for full layout (PerformLayout mode).
This is the single “final layout” slot. It includes child positions (relative to parent’s content-box) and overflow/scrollbar info.
Fields§
§available_size: LogicalSizeThe available size that was provided as input.
result_size: LogicalSizeThe computed border-box size (output).
content_size: LogicalSizeContent overflow size (for scrolling).
child_positions: Vec<(usize, LogicalPosition)>Child positions relative to parent’s content-box (NOT absolute).
escaped_top_margin: Option<f32>First child’s escaped top margin.
escaped_bottom_margin: Option<f32>Last child’s escaped bottom margin.
scrollbar_info: ScrollbarRequirementsScrollbar requirements for this node.
Trait Implementations§
Source§impl Clone for LayoutCacheEntry
impl Clone for LayoutCacheEntry
Source§fn clone(&self) -> LayoutCacheEntry
fn clone(&self) -> LayoutCacheEntry
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 LayoutCacheEntry
impl RefUnwindSafe for LayoutCacheEntry
impl Send for LayoutCacheEntry
impl Sync for LayoutCacheEntry
impl Unpin for LayoutCacheEntry
impl UnsafeUnpin for LayoutCacheEntry
impl UnwindSafe for LayoutCacheEntry
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