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
sourceimpl<'a> Clone for PrefixDeclaration<'a>
impl<'a> Clone for PrefixDeclaration<'a>
sourcefn clone(&self) -> PrefixDeclaration<'a>
fn clone(&self) -> PrefixDeclaration<'a>
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<'a> Debug for PrefixDeclaration<'a>
impl<'a> Debug for PrefixDeclaration<'a>
sourceimpl<'a> Hash for PrefixDeclaration<'a>
impl<'a> Hash for PrefixDeclaration<'a>
sourceimpl<'a> Ord for PrefixDeclaration<'a>
impl<'a> Ord for PrefixDeclaration<'a>
sourcefn cmp(&self, other: &PrefixDeclaration<'a>) -> Ordering
fn cmp(&self, other: &PrefixDeclaration<'a>) -> Ordering
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<'a> PartialEq<PrefixDeclaration<'a>> for PrefixDeclaration<'a>
impl<'a> PartialEq<PrefixDeclaration<'a>> for PrefixDeclaration<'a>
sourcefn eq(&self, other: &PrefixDeclaration<'a>) -> bool
fn eq(&self, other: &PrefixDeclaration<'a>) -> bool
sourceimpl<'a> PartialOrd<PrefixDeclaration<'a>> for PrefixDeclaration<'a>
impl<'a> PartialOrd<PrefixDeclaration<'a>> for PrefixDeclaration<'a>
sourcefn partial_cmp(&self, other: &PrefixDeclaration<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &PrefixDeclaration<'a>) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more