pub enum TokenValueRef<'a> {
Token(&'a Token),
Language(&'a Language),
Name(&'a Name),
NCName(&'a NCName),
Id(&'a Id),
IdRef(&'a IdRef),
NMToken(&'a NMToken),
}
Expand description
Any specialized Token
value reference.
Variants§
Token(&'a Token)
Language(&'a Language)
Name(&'a Name)
NCName(&'a NCName)
Id(&'a Id)
IdRef(&'a IdRef)
NMToken(&'a NMToken)
Implementations§
Source§impl<'a> TokenValueRef<'a>
impl<'a> TokenValueRef<'a>
pub fn datatype(&self) -> TokenDatatype
pub fn cloned(&self) -> TokenValue
Trait Implementations§
Source§impl<'a> Clone for TokenValueRef<'a>
impl<'a> Clone for TokenValueRef<'a>
Source§fn clone(&self) -> TokenValueRef<'a>
fn clone(&self) -> TokenValueRef<'a>
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<'a> Debug for TokenValueRef<'a>
impl<'a> Debug for TokenValueRef<'a>
Source§impl<'a> Display for TokenValueRef<'a>
impl<'a> Display for TokenValueRef<'a>
Source§impl<'a> From<NCNameValueRef<'a>> for TokenValueRef<'a>
impl<'a> From<NCNameValueRef<'a>> for TokenValueRef<'a>
Source§fn from(value: NCNameValueRef<'a>) -> Self
fn from(value: NCNameValueRef<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<NameValueRef<'a>> for TokenValueRef<'a>
impl<'a> From<NameValueRef<'a>> for TokenValueRef<'a>
Source§fn from(value: NameValueRef<'a>) -> Self
fn from(value: NameValueRef<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<TokenValueRef<'a>> for NormalizedStringValueRef<'a>
impl<'a> From<TokenValueRef<'a>> for NormalizedStringValueRef<'a>
Source§fn from(value: TokenValueRef<'a>) -> Self
fn from(value: TokenValueRef<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<TokenValueRef<'a>> for StringValueRef<'a>
impl<'a> From<TokenValueRef<'a>> for StringValueRef<'a>
Source§fn from(value: TokenValueRef<'a>) -> Self
fn from(value: TokenValueRef<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<TokenValueRef<'a>> for ValueRef<'a>
impl<'a> From<TokenValueRef<'a>> for ValueRef<'a>
Source§fn from(value: TokenValueRef<'a>) -> Self
fn from(value: TokenValueRef<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> TryFrom<NormalizedStringValueRef<'a>> for TokenValueRef<'a>
impl<'a> TryFrom<NormalizedStringValueRef<'a>> for TokenValueRef<'a>
Source§type Error = NormalizedStringValueRef<'a>
type Error = NormalizedStringValueRef<'a>
The type returned in the event of a conversion error.
Source§fn try_from(
value: NormalizedStringValueRef<'a>,
) -> Result<Self, NormalizedStringValueRef<'a>>
fn try_from( value: NormalizedStringValueRef<'a>, ) -> Result<Self, NormalizedStringValueRef<'a>>
Performs the conversion.
Source§impl<'a> TryFrom<StringValueRef<'a>> for TokenValueRef<'a>
impl<'a> TryFrom<StringValueRef<'a>> for TokenValueRef<'a>
Source§type Error = StringValueRef<'a>
type Error = StringValueRef<'a>
The type returned in the event of a conversion error.
Source§fn try_from(value: StringValueRef<'a>) -> Result<Self, StringValueRef<'a>>
fn try_from(value: StringValueRef<'a>) -> Result<Self, StringValueRef<'a>>
Performs the conversion.
Source§impl<'a> TryFrom<TokenValueRef<'a>> for NCNameValueRef<'a>
impl<'a> TryFrom<TokenValueRef<'a>> for NCNameValueRef<'a>
Source§type Error = TokenValueRef<'a>
type Error = TokenValueRef<'a>
The type returned in the event of a conversion error.
Source§fn try_from(value: TokenValueRef<'a>) -> Result<Self, TokenValueRef<'a>>
fn try_from(value: TokenValueRef<'a>) -> Result<Self, TokenValueRef<'a>>
Performs the conversion.
Source§impl<'a> TryFrom<TokenValueRef<'a>> for NameValueRef<'a>
impl<'a> TryFrom<TokenValueRef<'a>> for NameValueRef<'a>
Source§type Error = TokenValueRef<'a>
type Error = TokenValueRef<'a>
The type returned in the event of a conversion error.
Source§fn try_from(value: TokenValueRef<'a>) -> Result<Self, TokenValueRef<'a>>
fn try_from(value: TokenValueRef<'a>) -> Result<Self, TokenValueRef<'a>>
Performs the conversion.
Source§impl<'a> TryFrom<ValueRef<'a>> for TokenValueRef<'a>
impl<'a> TryFrom<ValueRef<'a>> for TokenValueRef<'a>
Source§impl<'a> XsdValue for TokenValueRef<'a>
impl<'a> XsdValue for TokenValueRef<'a>
impl<'a> Copy for TokenValueRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for TokenValueRef<'a>
impl<'a> RefUnwindSafe for TokenValueRef<'a>
impl<'a> Send for TokenValueRef<'a>
impl<'a> Sync for TokenValueRef<'a>
impl<'a> Unpin for TokenValueRef<'a>
impl<'a> UnwindSafe for TokenValueRef<'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