Enum nom_xml::prolog::internal_subset::InternalSubset
source · pub enum InternalSubset<'a> {
Element {
name: QualifiedName<'a>,
content_spec: Option<DeclarationContent<'a>>,
},
AttList {
name: QualifiedName<'a>,
att_defs: Option<Vec<Attribute<'a>>>,
},
Entity(EntityDeclaration<'a>),
DeclSep(Reference<'a>),
ProcessingInstruction(ProcessingInstruction<'a>),
}Variants§
Element
AttList
Entity(EntityDeclaration<'a>)
DeclSep(Reference<'a>)
ProcessingInstruction(ProcessingInstruction<'a>)
Implementations§
source§impl<'a> InternalSubset<'a>
impl<'a> InternalSubset<'a>
pub fn parse_internal_subset( input: &'a str ) -> IResult<&'a str, Vec<InternalSubset<'a>>>
pub fn parse_attlist_declaration( input: &'a str ) -> IResult<&'a str, InternalSubset<'a>>
pub fn parse_qualified_attlist_declaration( input: &'a str ) -> IResult<&'a str, InternalSubset<'a>>
Trait Implementations§
source§impl<'a> Clone for InternalSubset<'a>
impl<'a> Clone for InternalSubset<'a>
source§fn clone(&self) -> InternalSubset<'a>
fn clone(&self) -> InternalSubset<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<'a> Debug for InternalSubset<'a>
impl<'a> Debug for InternalSubset<'a>
source§impl<'a> Parse<'a> for InternalSubset<'a>
impl<'a> Parse<'a> for InternalSubset<'a>
fn parse(_input: &'a str) -> IResult<&'a str, Self>
fn is_char(c: char) -> bool
fn parse_char(input: &'a str) -> IResult<&'a str, char>
fn is_whitespace(c: char) -> bool
fn parse_multispace1(input: &'a str) -> IResult<&'a str, ()>
fn parse_multispace0(input: &'a str) -> IResult<&'a str, ()>
fn is_name_start_char(c: char) -> bool
fn is_name_char(c: char) -> bool
fn parse_name_char(input: &'a str) -> IResult<&'a str, char>
fn parse_name_start_char(input: &'a str) -> IResult<&'a str, char>
fn parse_nmtoken(input: &'a str) -> IResult<&'a str, Cow<'a, str>>
fn parse_nmtokens(input: &'a str) -> IResult<&'a str, Vec<Cow<'a, str>>>
fn parse_name(input: &'a str) -> IResult<&'a str, Cow<'a, str>>
fn parse_names(input: &'a str) -> IResult<&'a str, Vec<Cow<'a, str>>>
fn parse_eq(input: &'a str) -> IResult<&'a str, ()>
source§impl<'a> ParseNamespace<'a> for InternalSubset<'a>
impl<'a> ParseNamespace<'a> for InternalSubset<'a>
fn parse_namespace_attribute_name( input: &'a str ) -> IResult<&'a str, Cow<'a, str>>
fn parse_prefixed_attribute_name( input: &'a str ) -> IResult<&'a str, Cow<'a, str>>
fn parse_non_colonized_name(input: &'a str) -> IResult<&'a str, Cow<'a, str>>
fn parse_non_colonized_name_char(input: &'a str) -> IResult<&'a str, char>
fn parse_non_colonized_name_start_char(input: &'a str) -> IResult<&'a str, char>
fn parse_qualified_name(input: &'a str) -> IResult<&'a str, QualifiedName<'_>>
fn parse_prefixed_name(input: &'a str) -> IResult<&'a str, QualifiedName<'_>>
source§impl<'a> PartialEq<InternalSubset<'a>> for InternalSubset<'a>
impl<'a> PartialEq<InternalSubset<'a>> for InternalSubset<'a>
source§fn eq(&self, other: &InternalSubset<'a>) -> bool
fn eq(&self, other: &InternalSubset<'a>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl<'a> StructuralPartialEq for InternalSubset<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for InternalSubset<'a>
impl<'a> Send for InternalSubset<'a>
impl<'a> Sync for InternalSubset<'a>
impl<'a> Unpin for InternalSubset<'a>
impl<'a> UnwindSafe for InternalSubset<'a>
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