pub enum ComplexTypeKind {
Value,
Entity,
Function,
}Expand description
A bit of terminology:
- Complex types include
enum,struct,class, tuple, and function types. - Recursive but not complex types are pointers, optionals, and arrays.
- Placeholders are temporaries that stand in for named types.
- The rest of the types are called atomic or simple. They include numeric types (bool, integral, floating-point), Strings, Dates and Blobs.
- User-defined types are
enums,structs andclasses. - Named types are also enums, structs and classes, along with the built-in types (e.g. numeric types, strings, etc.).
- Product types are
structs,classes and tuples. - Value types are enums, structs, and tuples, along with the built-in types.
- Entity types are only classes (for now).
- Function types are… function types, obviously.
Variants§
Value
A complex type that is a value type: struct, enum, tuple
Entity
A complex type that is an entity type: currently, only class.
Function
A complex type that is a function type.
Trait Implementations§
Source§impl Clone for ComplexTypeKind
impl Clone for ComplexTypeKind
Source§fn clone(&self) -> ComplexTypeKind
fn clone(&self) -> ComplexTypeKind
Returns a duplicate 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 ComplexTypeKind
impl Debug for ComplexTypeKind
Source§impl Hash for ComplexTypeKind
impl Hash for ComplexTypeKind
Source§impl Ord for ComplexTypeKind
impl Ord for ComplexTypeKind
Source§fn cmp(&self, other: &ComplexTypeKind) -> Ordering
fn cmp(&self, other: &ComplexTypeKind) -> 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 ComplexTypeKind
impl PartialEq for ComplexTypeKind
Source§impl PartialOrd for ComplexTypeKind
impl PartialOrd for ComplexTypeKind
impl Copy for ComplexTypeKind
impl Eq for ComplexTypeKind
impl StructuralPartialEq for ComplexTypeKind
Auto Trait Implementations§
impl Freeze for ComplexTypeKind
impl RefUnwindSafe for ComplexTypeKind
impl Send for ComplexTypeKind
impl Sync for ComplexTypeKind
impl Unpin for ComplexTypeKind
impl UnwindSafe for ComplexTypeKind
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