Trait Parse

Source
pub trait Parse<'a>: Sized {
    type Args;
    type Output;

Show 16 methods // Provided methods fn parse(_input: &'a str, _args: Self::Args) -> Self::Output { ... } fn is_char(c: char) -> bool { ... } fn parse_char(input: &str) -> IResult<&str, char> { ... } fn is_whitespace(c: char) -> bool { ... } fn parse_multispace1(input: &str) -> IResult<&str, ()> { ... } fn parse_multispace0(input: &str) -> IResult<&str, ()> { ... } fn is_name_start_char(c: char) -> bool { ... } fn is_name_char(c: char) -> bool { ... } fn parse_name_char(input: &str) -> IResult<&str, char> { ... } fn parse_name_start_char(input: &str) -> IResult<&str, char> { ... } fn parse_nmtoken(input: &str) -> IResult<&str, String> { ... } fn parse_nmtokens(input: &str) -> IResult<&str, Vec<String>> { ... } fn parse_name(input: &str) -> IResult<&str, Name> { ... } fn parse_names(input: &str) -> IResult<&str, Vec<Name>> { ... } fn parse_eq(input: &str) -> IResult<&str, ()> { ... } fn capture_span<O, F>( f: F, ) -> Box<dyn FnMut(&'a str) -> IResult<&'a str, (&'a str, O)> + 'a> where F: FnMut(&'a str) -> IResult<&'a str, O> + 'a { ... }
}

Required Associated Types§

Provided Methods§

Source

fn parse(_input: &'a str, _args: Self::Args) -> Self::Output

Source

fn is_char(c: char) -> bool

Source

fn parse_char(input: &str) -> IResult<&str, char>

Source

fn is_whitespace(c: char) -> bool

Source

fn parse_multispace1(input: &str) -> IResult<&str, ()>

Source

fn parse_multispace0(input: &str) -> IResult<&str, ()>

Source

fn is_name_start_char(c: char) -> bool

Source

fn is_name_char(c: char) -> bool

Source

fn parse_name_char(input: &str) -> IResult<&str, char>

Source

fn parse_name_start_char(input: &str) -> IResult<&str, char>

Source

fn parse_nmtoken(input: &str) -> IResult<&str, String>

Source

fn parse_nmtokens(input: &str) -> IResult<&str, Vec<String>>

Source

fn parse_name(input: &str) -> IResult<&str, Name>

Source

fn parse_names(input: &str) -> IResult<&str, Vec<Name>>

Source

fn parse_eq(input: &str) -> IResult<&str, ()>

Source

fn capture_span<O, F>( f: F, ) -> Box<dyn FnMut(&'a str) -> IResult<&'a str, (&'a str, O)> + 'a>
where F: FnMut(&'a str) -> IResult<&'a str, O> + 'a,

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§

Source§

impl<'a> Parse<'a> for AttType

Source§

impl<'a> Parse<'a> for Attribute

Source§

impl<'a> Parse<'a> for DefaultDecl

Source§

impl<'a> Parse<'a> for ConditionalState

Source§

impl<'a> Parse<'a> for Document

Source§

impl<'a> Parse<'a> for ContentParticle

Source§

impl<'a> Parse<'a> for DeclarationContent

Source§

impl<'a> Parse<'a> for Mixed

Source§

impl<'a> Parse<'a> for ExternalID

Source§

impl<'a> Parse<'a> for ID

Source§

impl<'a> Parse<'a> for Subset

Source§

impl<'a> Parse<'a> for MarkupDeclaration

Source§

impl<'a> Parse<'a> for Reference

Source§

impl<'a> Parse<'a> for Misc

Source§

impl<'a> Parse<'a> for ProcessingInstruction

Source§

impl<'a> Parse<'a> for DocType

Source§

impl<'a> Parse<'a> for TextDecl

Source§

impl<'a> Parse<'a> for XmlDecl

Source§

impl<'a> Parse<'a> for Tag