Enum wac_types::DefinedType
source · pub enum DefinedType {
Tuple(Vec<ValueType>),
List(ValueType),
Option(ValueType),
Result {
ok: Option<ValueType>,
err: Option<ValueType>,
},
Variant(Variant),
Record(Record),
Flags(Flags),
Enum(Enum),
Alias(ValueType),
}Expand description
Represents a defined value type.
Variants§
Tuple(Vec<ValueType>)
A tuple type.
List(ValueType)
A list 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.
Implementations§
Trait Implementations§
source§impl Clone for DefinedType
impl Clone for DefinedType
source§fn clone(&self) -> DefinedType
fn clone(&self) -> DefinedType
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for DefinedType
impl RefUnwindSafe for DefinedType
impl Send for DefinedType
impl Sync for DefinedType
impl Unpin 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)