pub struct NamespacePrefix(pub Cow<'static, [u8]>);
Expand description
Represents a XML namespace prefix.
Tuple Fields§
§0: Cow<'static, [u8]>
Implementations§
Trait Implementations§
Source§impl Clone for NamespacePrefix
impl Clone for NamespacePrefix
Source§fn clone(&self) -> NamespacePrefix
fn clone(&self) -> NamespacePrefix
Returns a duplicate 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 Debug for NamespacePrefix
impl Debug for NamespacePrefix
Source§impl Default for NamespacePrefix
impl Default for NamespacePrefix
Source§fn default() -> NamespacePrefix
fn default() -> NamespacePrefix
Returns the “default value” for a type. Read more
Source§impl Display for NamespacePrefix
impl Display for NamespacePrefix
Source§impl<'x> From<&'x NamespacePrefix> for NamespacePrefix
impl<'x> From<&'x NamespacePrefix> for NamespacePrefix
Source§impl From<NamespacePrefix> for NamespaceIdent
impl From<NamespacePrefix> for NamespaceIdent
Source§fn from(value: NamespacePrefix) -> Self
fn from(value: NamespacePrefix) -> Self
Converts to this type from the input type.
Source§impl<X> From<X> for NamespacePrefix
impl<X> From<X> for NamespacePrefix
Source§impl Hash for NamespacePrefix
impl Hash for NamespacePrefix
Source§impl Ord for NamespacePrefix
impl Ord for NamespacePrefix
Source§fn cmp(&self, other: &NamespacePrefix) -> Ordering
fn cmp(&self, other: &NamespacePrefix) -> 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 PartialEq for NamespacePrefix
impl PartialEq for NamespacePrefix
Source§impl PartialOrd for NamespacePrefix
impl PartialOrd for NamespacePrefix
impl Eq for NamespacePrefix
impl StructuralPartialEq for NamespacePrefix
Auto Trait Implementations§
impl Freeze for NamespacePrefix
impl RefUnwindSafe for NamespacePrefix
impl Send for NamespacePrefix
impl Sync for NamespacePrefix
impl Unpin for NamespacePrefix
impl UnwindSafe for NamespacePrefix
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§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.