Trait layout_2020::dom_traversal::TraversalHandler

source ·
pub(crate) trait TraversalHandler<'dom, Node>
where Node: 'dom,
{ // Required methods fn handle_text( &mut self, info: &NodeAndStyleInfo<Node>, text: Cow<'dom, str>, ); fn handle_element( &mut self, info: &NodeAndStyleInfo<Node>, display: DisplayGeneratingBox, contents: Contents, box_slot: BoxSlot<'dom>, ); }

Required Methods§

source

fn handle_text(&mut self, info: &NodeAndStyleInfo<Node>, text: Cow<'dom, str>)

source

fn handle_element( &mut self, info: &NodeAndStyleInfo<Node>, display: DisplayGeneratingBox, contents: Contents, box_slot: BoxSlot<'dom>, )

Or pseudo-element

Implementors§

source§

impl<'a, 'dom, Node> TraversalHandler<'dom, Node> for FlexContainerBuilder<'a, 'dom, Node>
where Node: NodeExt<'dom> + 'dom,

source§

impl<'dom, Node> TraversalHandler<'dom, Node> for BlockContainerBuilder<'dom, '_, Node>
where Node: NodeExt<'dom>,

source§

impl<'dom, Node> TraversalHandler<'dom, Node> for TableColumnGroupBuilder
where Node: NodeExt<'dom> + 'dom,

source§

impl<'style, 'builder, 'dom, 'a, Node> TraversalHandler<'dom, Node> for TableRowBuilder<'style, 'builder, 'dom, 'a, Node>
where Node: NodeExt<'dom> + 'dom,

source§

impl<'style, 'dom, Node> TraversalHandler<'dom, Node> for TableBuilderTraversal<'style, 'dom, Node>
where Node: NodeExt<'dom> + 'dom,