pub struct NamespacePrefix(pub Cow<'static, [u8]>);Expand description
Represents a XML namespace prefix.
Tuple Fields§
§0: Cow<'static, [u8]>Implementations§
Source§impl NamespacePrefix
impl NamespacePrefix
Sourcepub const XS: NamespacePrefix
pub const XS: NamespacePrefix
Common used XML schema namespace prefix.
Sourcepub const XSI: NamespacePrefix
pub const XSI: NamespacePrefix
Common used XML schema instance namespace prefix.
Sourcepub const XML: NamespacePrefix
pub const XML: NamespacePrefix
Common used XML namespace prefix.
Source§impl NamespacePrefix
impl NamespacePrefix
Sourcepub fn new<X>(value: X) -> NamespacePrefix
pub fn new<X>(value: X) -> NamespacePrefix
Create a new NamespacePrefix instance from the passed value.
Sourcepub const fn new_const(value: &'static [u8]) -> NamespacePrefix
pub const fn new_const(value: &'static [u8]) -> NamespacePrefix
Create a new NamespacePrefix instance from the passed value.
In contrast to new this is a const function
and can be used during compile time.
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§fn from(value: &'x NamespacePrefix) -> NamespacePrefix
fn from(value: &'x NamespacePrefix) -> NamespacePrefix
Converts to this type from the input type.
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§fn from(value: X) -> NamespacePrefix
fn from(value: X) -> NamespacePrefix
Converts to this type from the input type.
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 UnsafeUnpin 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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.