pub struct SimpleType {
pub base: BuiltIn,
pub facets: Facets,
pub variety: Variety,
}Expand description
A simple type: a built-in, optionally restricted, listed or united.
Fields§
§base: BuiltInThe base built-in the value must first satisfy.
Meaningful only for Variety::Atomic; a list or union
carries its constraint in SimpleType::variety instead.
facets: FacetsAdditional constraints.
variety: VarietyWhether the value is a single value, a whitespace-separated list of them, or one of several alternatives.
Implementations§
Trait Implementations§
Source§impl Clone for SimpleType
impl Clone for SimpleType
Source§fn clone(&self) -> SimpleType
fn clone(&self) -> SimpleType
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 SimpleType
impl Debug for SimpleType
Source§impl PartialEq for SimpleType
impl PartialEq for SimpleType
impl StructuralPartialEq for SimpleType
Auto Trait Implementations§
impl Freeze for SimpleType
impl RefUnwindSafe for SimpleType
impl Send for SimpleType
impl Sync for SimpleType
impl Unpin for SimpleType
impl UnsafeUnpin for SimpleType
impl UnwindSafe for SimpleType
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