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 for PrefixDeclaration<'a>
impl<'a> PartialEq 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 for PrefixDeclaration<'a>
impl<'a> PartialOrd 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 moreimpl<'a> Copy for PrefixDeclaration<'a>
impl<'a> Eq for PrefixDeclaration<'a>
impl<'a> StructuralEq for PrefixDeclaration<'a>
impl<'a> StructuralPartialEq for PrefixDeclaration<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for PrefixDeclaration<'a>
impl<'a> Send for PrefixDeclaration<'a>
impl<'a> Sync for PrefixDeclaration<'a>
impl<'a> Unpin for PrefixDeclaration<'a>
impl<'a> UnwindSafe for PrefixDeclaration<'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