Trait weft::RenderTarget
source · pub trait RenderTarget {
fn start_element_attrs<'a, I: IntoIterator<Item = &'a AttrPair>>(
&mut self,
name: QName,
attrs: I
) -> Result<(), Error>;
fn text(&mut self, content: &str) -> Result<(), Error>;
fn end_element(&mut self, name: QName) -> Result<(), Error>;
}
Expand description
Something that we can use to actually render HTML to text.
Required Methods§
sourcefn start_element_attrs<'a, I: IntoIterator<Item = &'a AttrPair>>(
&mut self,
name: QName,
attrs: I
) -> Result<(), Error>
fn start_element_attrs<'a, I: IntoIterator<Item = &'a AttrPair>>(
&mut self,
name: QName,
attrs: I
) -> Result<(), Error>
Open an element with the given name and attributes.