Struct layout_2020::table::layout::CellLayout
source · struct CellLayout {
layout: IndependentLayout,
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: IndependentLayout
§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