pub enum DefinedType {
Show 13 variants
Tuple(Vec<ValueType>),
List(ValueType),
FixedSizeList(ValueType, u32),
Map(ValueType, ValueType),
Option(ValueType),
Result {
ok: Option<ValueType>,
err: Option<ValueType>,
},
Variant(Variant),
Record(Record),
Flags(Flags),
Enum(Enum),
Alias(ValueType),
Stream(Option<ValueType>),
Future(Option<ValueType>),
}Expand description
Represents a defined value type.
Variants§
Tuple(Vec<ValueType>)
A tuple type.
List(ValueType)
A list type.
FixedSizeList(ValueType, u32)
A fixed size array
Map(ValueType, ValueType)
A map type.
Option(ValueType)
An option type.
Result
A result type.
Variant(Variant)
The type is a variant type.
Record(Record)
The type is a record type.
Flags(Flags)
The type is a flags type.
Enum(Enum)
The type is an enum.
Alias(ValueType)
The type is an alias to another value type.
Stream(Option<ValueType>)
A stream type.
Future(Option<ValueType>)
A futures type.
Implementations§
Trait Implementations§
Source§impl Clone for DefinedType
impl Clone for DefinedType
Auto Trait Implementations§
impl Freeze for DefinedType
impl RefUnwindSafe for DefinedType
impl Send for DefinedType
impl Sync for DefinedType
impl Unpin for DefinedType
impl UnsafeUnpin for DefinedType
impl UnwindSafe for DefinedType
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