pub struct NormalizedString(/* private fields */);
Implementations§
Source§impl NormalizedString
impl NormalizedString
pub fn new(value: String) -> Result<Self, InvalidNormalizedStr>
Sourcepub unsafe fn new_unchecked(value: String) -> Self
pub unsafe fn new_unchecked(value: String) -> Self
Creates a new normalized string from the input value
without
validation.
§Safety
The input value
must be an XSD normalized string.
pub fn as_normalized_str(&self) -> &NormalizedStr
pub fn into_string(self) -> String
Trait Implementations§
Source§impl Borrow<NormalizedStr> for NormalizedString
impl Borrow<NormalizedStr> for NormalizedString
Source§fn borrow(&self) -> &NormalizedStr
fn borrow(&self) -> &NormalizedStr
Immutably borrows from an owned value. Read more
Source§impl Clone for NormalizedString
impl Clone for NormalizedString
Source§fn clone(&self) -> NormalizedString
fn clone(&self) -> NormalizedString
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 NormalizedString
impl Debug for NormalizedString
Source§impl Display for NormalizedString
impl Display for NormalizedString
Source§impl FromStr for NormalizedString
impl FromStr for NormalizedString
Source§impl Hash for NormalizedString
impl Hash for NormalizedString
Source§impl LexicalFormOf<NormalizedString> for NormalizedStr
impl LexicalFormOf<NormalizedString> for NormalizedStr
type ValueError = InvalidNormalizedStr
fn try_as_value(&self) -> Result<NormalizedString, Self::ValueError>
Source§impl Ord for NormalizedString
impl Ord for NormalizedString
Source§fn cmp(&self, other: &NormalizedString) -> Ordering
fn cmp(&self, other: &NormalizedString) -> 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 ParseXsd for NormalizedString
impl ParseXsd for NormalizedString
type LexicalForm = NormalizedStr
fn parse_xsd(lexical_value: &str) -> ParseXsdResult<Self, Self::LexicalForm>
Source§impl PartialEq for NormalizedString
impl PartialEq for NormalizedString
Source§impl PartialOrd for NormalizedString
impl PartialOrd for NormalizedString
Source§impl Deref for NormalizedString
impl Deref for NormalizedString
impl Eq for NormalizedString
impl StructuralPartialEq for NormalizedString
Auto Trait Implementations§
impl Freeze for NormalizedString
impl RefUnwindSafe for NormalizedString
impl Send for NormalizedString
impl Sync for NormalizedString
impl Unpin for NormalizedString
impl UnwindSafe for NormalizedString
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