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