Enum golem_wasm_ast::core::CoreSection
source · pub enum CoreSection<Ast: AstCustomization> {
}
Expand description
The core section nodes
See Section for more information.
Variants§
Type(FuncType)
Func(FuncTypeRef)
Code(FuncCode<Ast::Expr>)
Table(Table)
Mem(Mem)
Global(Global)
Elem(Elem<Ast::Expr>)
Data(Ast::Data)
DataCount(DataCount)
Start(Start)
Export(Export)
Import(Import)
Custom(Ast::Custom)
Implementations§
source§impl<Ast: AstCustomization> CoreSection<Ast>
impl<Ast: AstCustomization> CoreSection<Ast>
pub fn as_type(&self) -> &FuncType
pub fn as_func(&self) -> &FuncTypeRef
pub fn as_code(&self) -> &FuncCode<Ast::Expr>
pub fn as_table(&self) -> &Table
pub fn as_mem(&self) -> &Mem
pub fn as_global(&self) -> &Global
pub fn as_elem(&self) -> &Elem<Ast::Expr>
pub fn as_data(&self) -> &Ast::Data
pub fn as_data_count(&self) -> &DataCount
pub fn as_start(&self) -> &Start
pub fn as_export(&self) -> &Export
pub fn as_import(&self) -> &Import
pub fn as_custom(&self) -> &Ast::Custom
pub fn type_name(&self) -> &'static str
Trait Implementations§
source§impl<Ast: Clone + AstCustomization> Clone for CoreSection<Ast>
impl<Ast: Clone + AstCustomization> Clone for CoreSection<Ast>
source§fn clone(&self) -> CoreSection<Ast>
fn clone(&self) -> CoreSection<Ast>
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<Ast: Debug + AstCustomization> Debug for CoreSection<Ast>
impl<Ast: Debug + AstCustomization> Debug for CoreSection<Ast>
source§impl<Ast: PartialEq + AstCustomization> PartialEq for CoreSection<Ast>
impl<Ast: PartialEq + AstCustomization> PartialEq for CoreSection<Ast>
source§fn eq(&self, other: &CoreSection<Ast>) -> bool
fn eq(&self, other: &CoreSection<Ast>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<Ast: AstCustomization> Section<CoreIndexSpace, CoreSectionType> for CoreSection<Ast>
impl<Ast: AstCustomization> Section<CoreIndexSpace, CoreSectionType> for CoreSection<Ast>
fn index_space(&self) -> CoreIndexSpace
fn section_type(&self) -> CoreSectionType
impl<Ast: AstCustomization> StructuralPartialEq for CoreSection<Ast>
Auto Trait Implementations§
impl<Ast> Freeze for CoreSection<Ast>where
<Ast as AstCustomization>::Data: Freeze,
<Ast as AstCustomization>::Custom: Freeze,
<Ast as AstCustomization>::Expr: Freeze,
impl<Ast> RefUnwindSafe for CoreSection<Ast>where
<Ast as AstCustomization>::Data: RefUnwindSafe,
<Ast as AstCustomization>::Custom: RefUnwindSafe,
<Ast as AstCustomization>::Expr: RefUnwindSafe,
impl<Ast> Send for CoreSection<Ast>where
<Ast as AstCustomization>::Data: Send,
<Ast as AstCustomization>::Custom: Send,
<Ast as AstCustomization>::Expr: Send,
impl<Ast> Sync for CoreSection<Ast>where
<Ast as AstCustomization>::Data: Sync,
<Ast as AstCustomization>::Custom: Sync,
<Ast as AstCustomization>::Expr: Sync,
impl<Ast> Unpin for CoreSection<Ast>where
<Ast as AstCustomization>::Data: Unpin,
<Ast as AstCustomization>::Custom: Unpin,
<Ast as AstCustomization>::Expr: Unpin,
impl<Ast> UnwindSafe for CoreSection<Ast>where
<Ast as AstCustomization>::Data: UnwindSafe,
<Ast as AstCustomization>::Custom: UnwindSafe,
<Ast as AstCustomization>::Expr: UnwindSafe,
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
)