pub enum SimpleTypeDerivationMethod {
Restriction,
List,
Union,
}Expand description
Derivation method for simple types
This enum specifies how a simple type was derived from its base type. Note: This is different from complex type derivation which uses Restriction/Extension. Simple types use Restriction/List/Union.
Variants§
Restriction
Derived by restriction (constraining base type with facets)
List
Derived as a list type (whitespace-separated values)
Union
Derived as a union type (one of multiple member types)
Trait Implementations§
Source§impl Clone for SimpleTypeDerivationMethod
impl Clone for SimpleTypeDerivationMethod
Source§fn clone(&self) -> SimpleTypeDerivationMethod
fn clone(&self) -> SimpleTypeDerivationMethod
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 moreimpl Copy for SimpleTypeDerivationMethod
Source§impl Debug for SimpleTypeDerivationMethod
impl Debug for SimpleTypeDerivationMethod
Source§impl Default for SimpleTypeDerivationMethod
impl Default for SimpleTypeDerivationMethod
Source§fn default() -> SimpleTypeDerivationMethod
fn default() -> SimpleTypeDerivationMethod
Returns the “default value” for a type. Read more
impl Eq for SimpleTypeDerivationMethod
Source§impl PartialEq for SimpleTypeDerivationMethod
impl PartialEq for SimpleTypeDerivationMethod
Source§fn eq(&self, other: &SimpleTypeDerivationMethod) -> bool
fn eq(&self, other: &SimpleTypeDerivationMethod) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SimpleTypeDerivationMethod
Auto Trait Implementations§
impl Freeze for SimpleTypeDerivationMethod
impl RefUnwindSafe for SimpleTypeDerivationMethod
impl Send for SimpleTypeDerivationMethod
impl Sync for SimpleTypeDerivationMethod
impl Unpin for SimpleTypeDerivationMethod
impl UnsafeUnpin for SimpleTypeDerivationMethod
impl UnwindSafe for SimpleTypeDerivationMethod
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