struct CellLayout {
layout: CacheableLayoutResult,
padding: LogicalSides<Au>,
border: LogicalSides<Au>,
positioning_context: PositioningContext,
}
Expand description
A result of a final or speculative layout of a single cell in the table. Note that this is only done for slots that are not covered by spans or empty.
Fields§
§layout: CacheableLayoutResult
§padding: LogicalSides<Au>
§border: LogicalSides<Au>
§positioning_context: PositioningContext
Implementations§
Source§impl CellLayout
impl CellLayout
fn ascent(&self) -> Au
Sourcefn outer_block_size(&self) -> Au
fn outer_block_size(&self) -> Au
The block size of this laid out cell including its border and padding.
Sourcefn is_empty(&self) -> bool
fn is_empty(&self) -> bool
Whether the cell has no in-flow or out-of-flow contents, other than collapsed whitespace. Note this logic differs from ‘empty-cells’, which counts abspos contents as empty.
Sourcefn is_empty_for_empty_cells(&self) -> bool
fn is_empty_for_empty_cells(&self) -> bool
Whether the cell is considered empty for the purpose of the ‘empty-cells’ property.
Auto Trait Implementations§
impl Freeze for CellLayout
impl !RefUnwindSafe for CellLayout
impl Send for CellLayout
impl Sync for CellLayout
impl Unpin for CellLayout
impl !UnwindSafe for CellLayout
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> 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>
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 moreSource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
Source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
Source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert