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