Enum quick_xml::name::PrefixDeclaration
source · pub enum PrefixDeclaration<'a> {
Default,
Named(&'a [u8]),
}
Expand description
A namespace prefix declaration, xmlns
or xmlns:<name>
, as defined in
XML Schema specification
Variants§
Default
XML attribute binds a default namespace. Corresponds to xmlns
in xmlns="..."
Named(&'a [u8])
XML attribute binds a specified prefix to a namespace. Corresponds to a
prefix
in xmlns:prefix="..."
, which is stored as payload of this variant.
Trait Implementations§
source§impl<'a> Clone for PrefixDeclaration<'a>
impl<'a> Clone for PrefixDeclaration<'a>
source§fn clone(&self) -> PrefixDeclaration<'a>
fn clone(&self) -> PrefixDeclaration<'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 PrefixDeclaration<'a>
impl<'a> Debug for PrefixDeclaration<'a>
source§impl<'a> Hash for PrefixDeclaration<'a>
impl<'a> Hash for PrefixDeclaration<'a>
source§impl<'a> Ord for PrefixDeclaration<'a>
impl<'a> Ord for PrefixDeclaration<'a>
source§fn cmp(&self, other: &PrefixDeclaration<'a>) -> Ordering
fn cmp(&self, other: &PrefixDeclaration<'a>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<'a> PartialEq<PrefixDeclaration<'a>> for PrefixDeclaration<'a>
impl<'a> PartialEq<PrefixDeclaration<'a>> for PrefixDeclaration<'a>
source§fn eq(&self, other: &PrefixDeclaration<'a>) -> bool
fn eq(&self, other: &PrefixDeclaration<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> PartialOrd<PrefixDeclaration<'a>> for PrefixDeclaration<'a>
impl<'a> PartialOrd<PrefixDeclaration<'a>> for PrefixDeclaration<'a>
source§fn partial_cmp(&self, other: &PrefixDeclaration<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &PrefixDeclaration<'a>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more