pub enum TypeDef {
Primitive,
Struct {
fields: Vec<FieldDef>,
generics: Vec<Symbol>,
is_portable: bool,
is_shared: bool,
},
Enum {
variants: Vec<VariantDef>,
generics: Vec<Symbol>,
is_portable: bool,
is_shared: bool,
},
Generic {
param_count: usize,
},
Alias {
target: Symbol,
},
}Variants§
Primitive
Primitive type (Nat, Int, Text, Bool)
Struct
Struct with named fields and visibility Phase 34: Now includes optional type parameters Phase 47: Added is_portable for serde derives Phase 49: Added is_shared for CRDT Merge impl
Enum
Phase 33: Enum with variants (unit or with payload) Phase 34: Now includes optional type parameters Phase 47: Added is_portable for serde derives Phase 49: Added is_shared for CRDT Merge impl
Generic
Built-in generic type (List, Option, Result)
Alias
Type alias
Trait Implementations§
impl Eq for TypeDef
impl StructuralPartialEq for TypeDef
Auto Trait Implementations§
impl Freeze for TypeDef
impl RefUnwindSafe for TypeDef
impl Send for TypeDef
impl Sync for TypeDef
impl Unpin for TypeDef
impl UnwindSafe for TypeDef
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