pub struct TableSlotCell {
base: LayoutBoxBase,
contents: BlockFormattingContext,
colspan: usize,
rowspan: usize,
}Fields§
§base: LayoutBoxBaseThe LayoutBoxBase of this table cell.
contents: BlockFormattingContextThe contents of this cell, with its own layout.
colspan: usizeNumber of columns that the cell is to span. Must be greater than zero.
rowspan: usizeNumber of rows that the cell is to span. Zero means that the cell is to span all the remaining rows in the row group.
Implementations§
Source§impl TableSlotCell
impl TableSlotCell
fn layout_style(&self) -> LayoutStyle<'_>
fn effective_vertical_align(&self) -> VerticalAlignKeyword
fn inline_content_sizes( &self, layout_context: &LayoutContext<'_>, ) -> ContentSizes
fn create_fragment( &self, layout: CellLayout, cell_rect: LogicalRect<Au>, cell_baseline: Au, positioning_context: &mut PositioningContext, table_style: &ComputedValues, containing_block: &ContainingBlock<'_>, is_collapsed: bool, ) -> BoxFragment
Source§impl TableSlotCell
impl TableSlotCell
pub fn mock_for_testing(id: usize, colspan: usize, rowspan: usize) -> Self
Sourcepub fn node_id(&self) -> usize
pub fn node_id(&self) -> usize
Get the node id of this cell’s BaseFragmentInfo. This is used for unit tests.
fn repair_style(&mut self, new_style: &Arc<ComputedValues>)
Trait Implementations§
Source§impl Debug for TableSlotCell
impl Debug for TableSlotCell
Source§impl MallocSizeOf for TableSlotCell
impl MallocSizeOf for TableSlotCell
Source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
Auto Trait Implementations§
impl !Freeze for TableSlotCell
impl !RefUnwindSafe for TableSlotCell
impl Send for TableSlotCell
impl Sync for TableSlotCell
impl Unpin for TableSlotCell
impl !UnwindSafe for TableSlotCell
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> Filterable for T
impl<T> Filterable for T
Source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>
Creates a filterable data provider with the given name for debugging. 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