Enum nom_xml::attribute::DefaultDecl
source · pub enum DefaultDecl<'a> {
Required,
Implied,
Fixed(Cow<'a, str>),
Value(Cow<'a, str>),
}Variants§
Trait Implementations§
source§impl<'a> Clone for DefaultDecl<'a>
impl<'a> Clone for DefaultDecl<'a>
source§fn clone(&self) -> DefaultDecl<'a>
fn clone(&self) -> DefaultDecl<'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 DefaultDecl<'a>
impl<'a> Debug for DefaultDecl<'a>
source§impl<'a> Parse<'a> for DefaultDecl<'a>
impl<'a> Parse<'a> for DefaultDecl<'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> PartialEq<DefaultDecl<'a>> for DefaultDecl<'a>
impl<'a> PartialEq<DefaultDecl<'a>> for DefaultDecl<'a>
source§fn eq(&self, other: &DefaultDecl<'a>) -> bool
fn eq(&self, other: &DefaultDecl<'a>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl<'a> StructuralPartialEq for DefaultDecl<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for DefaultDecl<'a>
impl<'a> Send for DefaultDecl<'a>
impl<'a> Sync for DefaultDecl<'a>
impl<'a> Unpin for DefaultDecl<'a>
impl<'a> UnwindSafe for DefaultDecl<'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