Trait ElementParserExt

Source
pub trait ElementParserExt: ElementParser {
    // Provided method
    fn parse_element<E: ElementState>(self, tag: &str) -> Result<E::Output> { ... }
}
Expand description

extend ElementParser trait with convenience methods

Provided Methods§

Source

fn parse_element<E: ElementState>(self, tag: &str) -> Result<E::Output>

Full parsing of an element (fails hard if the tag doesn’t work out)

If you need to handle parse_element_start failures (e.g. by trying a different state) you can’t use this method.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§