pub struct TableBuilder {
pub incoming_rowspans: Vec<isize>,
/* private fields */
}Fields§
§incoming_rowspans: Vec<isize>An incoming rowspan is a value indicating that a cell in a row above the current row,
had a rowspan value other than 1. The values in this array indicate how many more
rows the cell should span. For example, a value of 0 at an index before current_x()
indicates that the cell on that column will not span into the next row, and at an index
after current_x() it indicates that the cell will not span into the current row.
A negative value means that the cell will span all remaining rows in the row group.
As each column in a row is processed, the values in this vector are updated for the next row.
Implementations§
Source§impl TableBuilder
impl TableBuilder
pub fn new_for_tests() -> Self
pub fn last_row_index_in_row_group_at_row_n(&self, n: usize) -> usize
pub fn finish(self) -> Table
pub fn start_row(&mut self)
pub fn end_row(&mut self)
Sourcepub fn add_cell(&mut self, cell: ArcRefCell<TableSlotCell>)
pub fn add_cell(&mut self, cell: ArcRefCell<TableSlotCell>)
https://html.spec.whatwg.org/multipage/#algorithm-for-processing-rows Push a single cell onto the slot map, handling any colspans it may have, and setting up the outgoing rowspans.
Auto Trait Implementations§
impl Freeze for TableBuilder
impl !RefUnwindSafe for TableBuilder
impl Send for TableBuilder
impl Sync for TableBuilder
impl Unpin for TableBuilder
impl UnsafeUnpin for TableBuilder
impl !UnwindSafe for TableBuilder
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
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>
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