Enum golem_wasm_ast::component::Canon
source · pub enum Canon {
Lift {
func_idx: FuncIdx,
opts: Vec<CanonicalOption>,
function_type: ComponentTypeIdx,
},
Lower {
func_idx: ComponentFuncIdx,
opts: Vec<CanonicalOption>,
},
ResourceNew {
type_idx: ComponentTypeIdx,
},
ResourceDrop {
type_idx: ComponentTypeIdx,
},
ResourceRep {
type_idx: ComponentTypeIdx,
},
}
Variants§
Lift
Lower
ResourceNew
Fields
§
type_idx: ComponentTypeIdx
ResourceDrop
Fields
§
type_idx: ComponentTypeIdx
ResourceRep
Fields
§
type_idx: ComponentTypeIdx
Trait Implementations§
source§impl From<&Canon> for CanonicalFunctionSection
impl From<&Canon> for CanonicalFunctionSection
source§impl PartialEq for Canon
impl PartialEq for Canon
source§impl Section<ComponentIndexSpace, ComponentSectionType> for Canon
impl Section<ComponentIndexSpace, ComponentSectionType> for Canon
fn index_space(&self) -> ComponentIndexSpace
fn section_type(&self) -> ComponentSectionType
source§impl TryFrom<CanonicalFunction> for Canon
impl TryFrom<CanonicalFunction> for Canon
impl Eq for Canon
impl StructuralPartialEq for Canon
Auto Trait Implementations§
impl RefUnwindSafe for Canon
impl Send for Canon
impl Sync for Canon
impl Unpin for Canon
impl UnwindSafe for Canon
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.