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 Freeze for Canon
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
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.