Struct layout_2020::table::construct::TableRowBuilder
source · struct TableRowBuilder<'style, 'builder, 'dom, 'a, Node> {
table_traversal: &'builder mut TableBuilderTraversal<'style, 'dom, Node>,
info: &'a NodeAndStyleInfo<Node>,
current_anonymous_cell_content: Vec<AnonymousTableContent<'dom, Node>>,
text_decoration_line: TextDecorationLine,
}
Fields§
§table_traversal: &'builder mut TableBuilderTraversal<'style, 'dom, Node>
§info: &'a NodeAndStyleInfo<Node>
The NodeAndStyleInfo
of this table row, which we use to
construct anonymous table cells.
current_anonymous_cell_content: Vec<AnonymousTableContent<'dom, Node>>
§text_decoration_line: TextDecorationLine
The TextDecorationLine
to use for all children of this row.
Implementations§
source§impl<'style, 'builder, 'dom, 'a, Node> TableRowBuilder<'style, 'builder, 'dom, 'a, Node>where
Node: NodeExt<'dom> + 'dom,
impl<'style, 'builder, 'dom, 'a, Node> TableRowBuilder<'style, 'builder, 'dom, 'a, Node>where
Node: NodeExt<'dom> + 'dom,
fn new( table_traversal: &'builder mut TableBuilderTraversal<'style, 'dom, Node>, info: &'a NodeAndStyleInfo<Node>, propagated_text_decoration_line: TextDecorationLine, ) -> Self
fn finish(self)
fn finish_current_anonymous_cell_if_needed(&mut self)
Trait Implementations§
source§impl<'style, 'builder, 'dom, 'a, Node> TraversalHandler<'dom, Node> for TableRowBuilder<'style, 'builder, 'dom, 'a, Node>where
Node: NodeExt<'dom> + 'dom,
impl<'style, 'builder, 'dom, 'a, Node> TraversalHandler<'dom, Node> for TableRowBuilder<'style, 'builder, 'dom, 'a, Node>where
Node: NodeExt<'dom> + 'dom,
source§fn handle_element(
&mut self,
info: &NodeAndStyleInfo<Node>,
display: DisplayGeneratingBox,
contents: Contents,
box_slot: BoxSlot<'dom>,
)
fn handle_element( &mut self, info: &NodeAndStyleInfo<Node>, display: DisplayGeneratingBox, contents: Contents, box_slot: BoxSlot<'dom>, )
fn handle_text(&mut self, info: &NodeAndStyleInfo<Node>, text: Cow<'dom, str>)
Auto Trait Implementations§
impl<'style, 'builder, 'dom, 'a, Node> Freeze for TableRowBuilder<'style, 'builder, 'dom, 'a, Node>
impl<'style, 'builder, 'dom, 'a, Node> !RefUnwindSafe for TableRowBuilder<'style, 'builder, 'dom, 'a, Node>
impl<'style, 'builder, 'dom, 'a, Node> Send for TableRowBuilder<'style, 'builder, 'dom, 'a, Node>
impl<'style, 'builder, 'dom, 'a, Node> Sync for TableRowBuilder<'style, 'builder, 'dom, 'a, Node>where
Node: Sync,
impl<'style, 'builder, 'dom, 'a, Node> Unpin for TableRowBuilder<'style, 'builder, 'dom, 'a, Node>where
Node: Unpin,
impl<'style, 'builder, 'dom, 'a, Node> !UnwindSafe for TableRowBuilder<'style, 'builder, 'dom, 'a, Node>
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