pub enum ComponentDefinedType {
Primitive {
typ: PrimitiveValueType,
},
Record {
fields: Vec<(String, ComponentValType)>,
},
Variant {
cases: Vec<VariantCase>,
},
List {
elem: ComponentValType,
},
Tuple {
elems: Vec<ComponentValType>,
},
Flags {
names: Vec<String>,
},
Enum {
names: Vec<String>,
},
Option {
typ: ComponentValType,
},
Result {
ok: Option<ComponentValType>,
err: Option<ComponentValType>,
},
Owned {
type_idx: ComponentTypeIdx,
},
Borrowed {
type_idx: ComponentTypeIdx,
},
}
Variants§
Primitive
Fields
§
typ: PrimitiveValueType
Record
Fields
§
fields: Vec<(String, ComponentValType)>
Variant
Fields
§
cases: Vec<VariantCase>
List
Fields
§
elem: ComponentValType
Tuple
Fields
§
elems: Vec<ComponentValType>
Flags
Enum
Option
Fields
§
typ: ComponentValType
Result
Owned
Fields
§
type_idx: ComponentTypeIdx
Borrowed
Fields
§
type_idx: ComponentTypeIdx
Trait Implementations§
source§impl Clone for ComponentDefinedType
impl Clone for ComponentDefinedType
source§fn clone(&self) -> ComponentDefinedType
fn clone(&self) -> ComponentDefinedType
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 moresource§impl Debug for ComponentDefinedType
impl Debug for ComponentDefinedType
source§impl PartialEq for ComponentDefinedType
impl PartialEq for ComponentDefinedType
source§fn eq(&self, other: &ComponentDefinedType) -> bool
fn eq(&self, other: &ComponentDefinedType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> TryFrom<ComponentDefinedType<'a>> for ComponentDefinedType
impl<'a> TryFrom<ComponentDefinedType<'a>> for ComponentDefinedType
impl Eq for ComponentDefinedType
impl StructuralPartialEq for ComponentDefinedType
Auto Trait Implementations§
impl Freeze for ComponentDefinedType
impl RefUnwindSafe for ComponentDefinedType
impl Send for ComponentDefinedType
impl Sync for ComponentDefinedType
impl Unpin for ComponentDefinedType
impl UnwindSafe for ComponentDefinedType
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
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.