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§
fn handle_text(&mut self, info: &NodeAndStyleInfo<Node>, text: Cow<'dom, str>)
sourcefn 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>, )
Or pseudo-element