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