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§impl<'a> PartialOrd for PrefixDeclaration<'a>
impl<'a> PartialOrd for PrefixDeclaration<'a>
impl<'a> Copy for PrefixDeclaration<'a>
impl<'a> Eq for PrefixDeclaration<'a>
impl<'a> StructuralPartialEq for PrefixDeclaration<'a>
Auto Trait Implementations§
impl<'a> Freeze for PrefixDeclaration<'a>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)