Enum xsd_types::TokenDatatype
source · pub enum TokenDatatype {
Token,
Language,
Name(NameDatatype),
NMToken,
}Expand description
Token datatype variants.
Variants§
Implementations§
Trait Implementations§
source§impl Clone for TokenDatatype
impl Clone for TokenDatatype
source§fn clone(&self) -> TokenDatatype
fn clone(&self) -> TokenDatatype
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 TokenDatatype
impl Debug for TokenDatatype
source§impl From<NCNameDatatype> for TokenDatatype
impl From<NCNameDatatype> for TokenDatatype
source§fn from(value: NCNameDatatype) -> Self
fn from(value: NCNameDatatype) -> Self
Converts to this type from the input type.
source§impl From<NameDatatype> for TokenDatatype
impl From<NameDatatype> for TokenDatatype
source§fn from(value: NameDatatype) -> Self
fn from(value: NameDatatype) -> Self
Converts to this type from the input type.
source§impl From<TokenDatatype> for Datatype
impl From<TokenDatatype> for Datatype
source§fn from(value: TokenDatatype) -> Self
fn from(value: TokenDatatype) -> Self
Converts to this type from the input type.
source§impl From<TokenDatatype> for NormalizedStringDatatype
impl From<TokenDatatype> for NormalizedStringDatatype
source§fn from(value: TokenDatatype) -> Self
fn from(value: TokenDatatype) -> Self
Converts to this type from the input type.
source§impl From<TokenDatatype> for StringDatatype
impl From<TokenDatatype> for StringDatatype
source§fn from(value: TokenDatatype) -> Self
fn from(value: TokenDatatype) -> Self
Converts to this type from the input type.
source§impl Hash for TokenDatatype
impl Hash for TokenDatatype
source§impl Ord for TokenDatatype
impl Ord for TokenDatatype
source§fn cmp(&self, other: &TokenDatatype) -> Ordering
fn cmp(&self, other: &TokenDatatype) -> 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 PartialEq for TokenDatatype
impl PartialEq for TokenDatatype
source§fn eq(&self, other: &TokenDatatype) -> bool
fn eq(&self, other: &TokenDatatype) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for TokenDatatype
impl PartialOrd for TokenDatatype
source§fn partial_cmp(&self, other: &TokenDatatype) -> Option<Ordering>
fn partial_cmp(&self, other: &TokenDatatype) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl TryFrom<Datatype> for TokenDatatype
impl TryFrom<Datatype> for TokenDatatype
source§impl TryFrom<NormalizedStringDatatype> for TokenDatatype
impl TryFrom<NormalizedStringDatatype> for TokenDatatype
§type Error = NormalizedStringDatatype
type Error = NormalizedStringDatatype
The type returned in the event of a conversion error.
source§fn try_from(
value: NormalizedStringDatatype
) -> Result<Self, NormalizedStringDatatype>
fn try_from( value: NormalizedStringDatatype ) -> Result<Self, NormalizedStringDatatype>
Performs the conversion.
source§impl TryFrom<StringDatatype> for TokenDatatype
impl TryFrom<StringDatatype> for TokenDatatype
§type Error = StringDatatype
type Error = StringDatatype
The type returned in the event of a conversion error.
source§fn try_from(value: StringDatatype) -> Result<Self, StringDatatype>
fn try_from(value: StringDatatype) -> Result<Self, StringDatatype>
Performs the conversion.
source§impl TryFrom<TokenDatatype> for NCNameDatatype
impl TryFrom<TokenDatatype> for NCNameDatatype
§type Error = TokenDatatype
type Error = TokenDatatype
The type returned in the event of a conversion error.
source§fn try_from(value: TokenDatatype) -> Result<Self, TokenDatatype>
fn try_from(value: TokenDatatype) -> Result<Self, TokenDatatype>
Performs the conversion.
source§impl TryFrom<TokenDatatype> for NameDatatype
impl TryFrom<TokenDatatype> for NameDatatype
§type Error = TokenDatatype
type Error = TokenDatatype
The type returned in the event of a conversion error.
source§fn try_from(value: TokenDatatype) -> Result<Self, TokenDatatype>
fn try_from(value: TokenDatatype) -> Result<Self, TokenDatatype>
Performs the conversion.
impl Copy for TokenDatatype
impl Eq for TokenDatatype
impl StructuralPartialEq for TokenDatatype
Auto Trait Implementations§
impl RefUnwindSafe for TokenDatatype
impl Send for TokenDatatype
impl Sync for TokenDatatype
impl Unpin for TokenDatatype
impl UnwindSafe for TokenDatatype
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