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§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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more