pub enum NormalizedStringValue {
NormalizedString(NormalizedString),
Token(TokenBuf),
Language(LanguageBuf),
Name(NameBuf),
NCName(NCNameBuf),
Id(IdBuf),
IdRef(IdRefBuf),
NMToken(NMTokenBuf),
}
Expand description
Any specialized NormalizedStr
value.
Variants§
NormalizedString(NormalizedString)
Token(TokenBuf)
Language(LanguageBuf)
Name(NameBuf)
NCName(NCNameBuf)
Id(IdBuf)
IdRef(IdRefBuf)
NMToken(NMTokenBuf)
Implementations§
Source§impl NormalizedStringValue
impl NormalizedStringValue
pub fn datatype(&self) -> NormalizedStringDatatype
Source§impl NormalizedStringValue
impl NormalizedStringValue
pub fn as_ref(&self) -> NormalizedStringValueRef<'_>
Trait Implementations§
Source§impl Clone for NormalizedStringValue
impl Clone for NormalizedStringValue
Source§fn clone(&self) -> NormalizedStringValue
fn clone(&self) -> NormalizedStringValue
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 NormalizedStringValue
impl Debug for NormalizedStringValue
Source§impl Display for NormalizedStringValue
impl Display for NormalizedStringValue
Source§impl From<NCNameValue> for NormalizedStringValue
impl From<NCNameValue> for NormalizedStringValue
Source§fn from(value: NCNameValue) -> Self
fn from(value: NCNameValue) -> Self
Converts to this type from the input type.
Source§impl From<NameValue> for NormalizedStringValue
impl From<NameValue> for NormalizedStringValue
Source§impl From<NormalizedStringValue> for StringValue
impl From<NormalizedStringValue> for StringValue
Source§fn from(value: NormalizedStringValue) -> Self
fn from(value: NormalizedStringValue) -> Self
Converts to this type from the input type.
Source§impl From<NormalizedStringValue> for Value
impl From<NormalizedStringValue> for Value
Source§fn from(value: NormalizedStringValue) -> Self
fn from(value: NormalizedStringValue) -> Self
Converts to this type from the input type.
Source§impl From<TokenValue> for NormalizedStringValue
impl From<TokenValue> for NormalizedStringValue
Source§fn from(value: TokenValue) -> Self
fn from(value: TokenValue) -> Self
Converts to this type from the input type.
Source§impl TryFrom<NormalizedStringValue> for NCNameValue
impl TryFrom<NormalizedStringValue> for NCNameValue
Source§type Error = NormalizedStringValue
type Error = NormalizedStringValue
The type returned in the event of a conversion error.
Source§fn try_from(value: NormalizedStringValue) -> Result<Self, NormalizedStringValue>
fn try_from(value: NormalizedStringValue) -> Result<Self, NormalizedStringValue>
Performs the conversion.
Source§impl TryFrom<NormalizedStringValue> for NameValue
impl TryFrom<NormalizedStringValue> for NameValue
Source§type Error = NormalizedStringValue
type Error = NormalizedStringValue
The type returned in the event of a conversion error.
Source§fn try_from(value: NormalizedStringValue) -> Result<Self, NormalizedStringValue>
fn try_from(value: NormalizedStringValue) -> Result<Self, NormalizedStringValue>
Performs the conversion.
Source§impl TryFrom<NormalizedStringValue> for TokenValue
impl TryFrom<NormalizedStringValue> for TokenValue
Source§type Error = NormalizedStringValue
type Error = NormalizedStringValue
The type returned in the event of a conversion error.
Source§fn try_from(value: NormalizedStringValue) -> Result<Self, NormalizedStringValue>
fn try_from(value: NormalizedStringValue) -> Result<Self, NormalizedStringValue>
Performs the conversion.
Source§impl TryFrom<StringValue> for NormalizedStringValue
impl TryFrom<StringValue> for NormalizedStringValue
Source§type Error = StringValue
type Error = StringValue
The type returned in the event of a conversion error.
Source§fn try_from(value: StringValue) -> Result<Self, StringValue>
fn try_from(value: StringValue) -> Result<Self, StringValue>
Performs the conversion.
Source§impl TryFrom<Value> for NormalizedStringValue
impl TryFrom<Value> for NormalizedStringValue
Auto Trait Implementations§
impl Freeze for NormalizedStringValue
impl RefUnwindSafe for NormalizedStringValue
impl Send for NormalizedStringValue
impl Sync for NormalizedStringValue
impl Unpin for NormalizedStringValue
impl UnwindSafe for NormalizedStringValue
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