pub enum PrimitiveType {
Show 19 variants
String,
Boolean,
Decimal,
Float,
Double,
Duration,
DateTime,
Time,
Date,
GYearMonth,
GYear,
GMonthDay,
GDay,
GMonth,
HexBinary,
Base64Binary,
AnyUri,
QName,
Other(String),
}Expand description
The XSD primitive datatype hierarchy.
Variants§
String
Boolean
Decimal
Float
Double
Duration
DateTime
Time
Date
GYearMonth
GYear
GMonthDay
GDay
GMonth
HexBinary
Base64Binary
AnyUri
QName
Other(String)
Implementations§
Trait Implementations§
Source§impl AsRef<str> for PrimitiveType
impl AsRef<str> for PrimitiveType
Source§impl Clone for PrimitiveType
impl Clone for PrimitiveType
Source§fn clone(&self) -> PrimitiveType
fn clone(&self) -> PrimitiveType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PrimitiveType
impl Debug for PrimitiveType
Source§impl Default for PrimitiveType
impl Default for PrimitiveType
Source§fn default() -> PrimitiveType
fn default() -> PrimitiveType
Returns the “default value” for a type. Read more
Source§impl Display for PrimitiveType
impl Display for PrimitiveType
impl Eq for PrimitiveType
Source§impl From<&str> for PrimitiveType
impl From<&str> for PrimitiveType
Source§fn from(s: &str) -> PrimitiveType
fn from(s: &str) -> PrimitiveType
Converts to this type from the input type.
Source§impl From<PrimitiveType> for Type
impl From<PrimitiveType> for Type
Source§fn from(input: PrimitiveType) -> Self
fn from(input: PrimitiveType) -> Self
Converts to this type from the input type.
Source§impl FromStr for PrimitiveType
impl FromStr for PrimitiveType
Source§impl Hash for PrimitiveType
impl Hash for PrimitiveType
Source§impl Ord for PrimitiveType
impl Ord for PrimitiveType
Source§fn cmp(&self, other: &PrimitiveType) -> Ordering
fn cmp(&self, other: &PrimitiveType) -> Ordering
1.21.0 (const: unstable) · 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 PrimitiveType
impl PartialEq for PrimitiveType
Source§fn eq(&self, other: &PrimitiveType) -> bool
fn eq(&self, other: &PrimitiveType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PrimitiveType
impl PartialOrd for PrimitiveType
impl StructuralPartialEq for PrimitiveType
Auto Trait Implementations§
impl Freeze for PrimitiveType
impl RefUnwindSafe for PrimitiveType
impl Send for PrimitiveType
impl Sync for PrimitiveType
impl Unpin for PrimitiveType
impl UnsafeUnpin for PrimitiveType
impl UnwindSafe for PrimitiveType
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