pub struct SizingCacheEntry {
pub available_size: LogicalSize,
pub result_size: LogicalSize,
pub baseline: Option<f32>,
pub escaped_top_margin: Option<f32>,
pub escaped_bottom_margin: Option<f32>,
}Expand description
Cache entry for sizing (ComputeSize mode) — stores NO positions.
This is the lightweight entry stored in the 9 measurement slots. It records what constraints were provided and what size resulted, enabling Taffy’s “result matches request” optimization.
Fields§
§available_size: LogicalSizeThe available size that was provided as input.
result_size: LogicalSizeThe computed border-box size (output).
baseline: Option<f32>Baseline for inline alignment (if applicable).
escaped_top_margin: Option<f32>First child’s escaped top margin (CSS 2.2 § 8.3.1).
escaped_bottom_margin: Option<f32>Last child’s escaped bottom margin (CSS 2.2 § 8.3.1).
Trait Implementations§
Source§impl Clone for SizingCacheEntry
impl Clone for SizingCacheEntry
Source§fn clone(&self) -> SizingCacheEntry
fn clone(&self) -> SizingCacheEntry
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 SizingCacheEntry
impl RefUnwindSafe for SizingCacheEntry
impl Send for SizingCacheEntry
impl Sync for SizingCacheEntry
impl Unpin for SizingCacheEntry
impl UnsafeUnpin for SizingCacheEntry
impl UnwindSafe for SizingCacheEntry
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