pub(crate) struct IndependentFormattingContextLayoutResultAndInputs {
pub result: IndependentFormattingContextLayoutResult,
pub containing_block_for_children_size: ContainingBlockSize,
pub positioning_context: PositioningContext,
content_block_size_under_default_constraint: Option<Au>,
}Expand description
A collection of layout inputs and a cached layout result for an IndependentFormattingContext for
use in LayoutBoxBase.
Fields§
§result: IndependentFormattingContextLayoutResultThe IndependentFormattingContextLayoutResult for this layout.
containing_block_for_children_size: ContainingBlockSizeThe ContainingBlockSize to use for this box’s contents, but not
for the box itself.
positioning_context: PositioningContextA PositioningContext holding absolutely-positioned descendants
collected during the layout of this box.
content_block_size_under_default_constraint: Option<Au>The IndependentFormattingContextLayoutResult::content_block_size
that we would get if Self::containing_block_for_children_size had
a block size of SizeConstraint::default(), if we know that.
This is not an input, but we don’t always need it, so it’s not a
direct output either. Also note it’s not necessarily computed from
the current inputs, can be reused from previous compatible ones.
Implementations§
Source§impl IndependentFormattingContextLayoutResultAndInputs
impl IndependentFormattingContextLayoutResultAndInputs
fn applicable_for_inline_size(&self, inline_size: Au) -> bool
fn applicable_for_block_size(&self, block_size: SizeConstraint) -> bool
Trait Implementations§
Source§impl MallocSizeOf for IndependentFormattingContextLayoutResultAndInputs
impl MallocSizeOf for IndependentFormattingContextLayoutResultAndInputs
Source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Auto Trait Implementations§
impl !RefUnwindSafe for IndependentFormattingContextLayoutResultAndInputs
impl !UnwindSafe for IndependentFormattingContextLayoutResultAndInputs
impl Freeze for IndependentFormattingContextLayoutResultAndInputs
impl Send for IndependentFormattingContextLayoutResultAndInputs
impl Sync for IndependentFormattingContextLayoutResultAndInputs
impl Unpin for IndependentFormattingContextLayoutResultAndInputs
impl UnsafeUnpin for IndependentFormattingContextLayoutResultAndInputs
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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> ⓘ
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> ⓘ
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