pub enum Node {
Element(Element),
String(KString),
Preserialized(SerHtmlFrag),
None,
}Variants§
Implementations§
Trait Implementations§
Source§impl Print for Node
impl Print for Node
Source§fn print_html_fragment(
&self,
out: &mut impl Write,
allocator: &HtmlAllocator,
) -> Result<()>
fn print_html_fragment( &self, out: &mut impl Write, allocator: &HtmlAllocator, ) -> Result<()>
Print serialized HTML.
Source§fn print_plain(&self, out: &mut String, allocator: &HtmlAllocator) -> Result<()>
fn print_plain(&self, out: &mut String, allocator: &HtmlAllocator) -> Result<()>
Print plain text, completely ignoring HTML markup. Can
currently only give an error if encountering preserialized
HTML.
fn to_html_fragment_string(&self, allocator: &HtmlAllocator) -> Result<String>
fn to_plain_string(&self, allocator: &HtmlAllocator) -> Result<String>
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnwindSafe for 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