Trait nom_xml::parse::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,

Object Safety§

This trait is not object safe.

Implementors§

source§

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

§

type Args = ()

§

type Output = Result<(&'a str, AttType), Err<Error>>

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

§

type Args = Config

§

type Output = Result<(&'a str, Document), Err<Error>>

source§

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

source§

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

source§

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

§

type Args = ()

§

type Output = Result<(&'a str, Mixed), Err<Error>>

source§

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

§

type Args = ()

§

type Output = Result<(&'a str, ExternalID), Err<Error>>

source§

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

§

type Args = ()

§

type Output = Result<(&'a str, ID), Err<Error>>

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

§

type Args = MiscState

§

type Output = Result<(&'a str, Misc), Err<Error>>

source§

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

source§

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

source§

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

§

type Args = ()

§

type Output = Result<(&'a str, TextDecl), Err<Error>>

source§

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

§

type Args = ()

§

type Output = Result<(&'a str, XmlDecl), Err<Error>>

source§

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

§

type Args = ()

§

type Output = Result<(&'a str, Tag), Err<Error>>