pub struct Namespace<'a>(pub &'a [u8]);Expand description
A namespace name that is declared in an xmlns[:prefix]="namespace name".
Tuple Fields§
§0: &'a [u8]Implementations§
Source§impl<'a> Namespace<'a>
impl<'a> Namespace<'a>
Sourcepub const fn into_inner(self) -> &'a [u8] ⓘ
pub const fn into_inner(self) -> &'a [u8] ⓘ
Converts this namespace to its internal slice representation.
This is a non-normalized attribute value, i.e. entity references are not expanded and space characters are not removed, so two different byte slices returned from this method can represent the same namespace.
Trait Implementations§
impl<'a> Copy for Namespace<'a>
Source§impl<'de: 'a, 'a> Deserialize<'de> for Namespace<'a>
Available on crate feature serde-types only.
impl<'de: 'a, 'a> Deserialize<'de> for Namespace<'a>
Available on crate feature
serde-types only.Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<'a> Eq for Namespace<'a>
Source§impl<'a> Ord for Namespace<'a>
impl<'a> Ord for Namespace<'a>
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl<'a> PartialOrd for Namespace<'a>
impl<'a> PartialOrd for Namespace<'a>
impl<'a> StructuralPartialEq for Namespace<'a>
Auto Trait Implementations§
impl<'a> Freeze for Namespace<'a>
impl<'a> RefUnwindSafe for Namespace<'a>
impl<'a> Send for Namespace<'a>
impl<'a> Sync for Namespace<'a>
impl<'a> Unpin for Namespace<'a>
impl<'a> UnsafeUnpin for Namespace<'a>
impl<'a> UnwindSafe for Namespace<'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