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