Struct golem_wasm_ast::analysis::AnalysisContext
source · pub struct AnalysisContext<Ast: AstCustomization + 'static> { /* private fields */ }
Implementations§
source§impl<Ast: AstCustomization + 'static> AnalysisContext<Ast>
impl<Ast: AstCustomization + 'static> AnalysisContext<Ast>
pub fn new(component: Component<Ast>) -> AnalysisContext<Ast>
sourcepub fn from_rc(component: Mrc<Component<Ast>>) -> AnalysisContext<Ast>
pub fn from_rc(component: Mrc<Component<Ast>>) -> AnalysisContext<Ast>
Initializes an analyzer for a given component
sourcepub fn get_top_level_exports(&self) -> AnalysisResult<Vec<AnalysedExport>>
pub fn get_top_level_exports(&self) -> AnalysisResult<Vec<AnalysedExport>>
Get all top-level exports from the component with all the type information gathered from the component AST.
sourcepub fn get_all_memories(&self) -> AnalysisResult<Vec<Mem>>
pub fn get_all_memories(&self) -> AnalysisResult<Vec<Mem>>
Gets all the memories (not just the exported ones) from all modules within the WASM component
pub fn warnings(&self) -> Vec<AnalysisWarning>
Trait Implementations§
source§impl<Ast: Clone + AstCustomization + 'static> Clone for AnalysisContext<Ast>
impl<Ast: Clone + AstCustomization + 'static> Clone for AnalysisContext<Ast>
source§fn clone(&self) -> AnalysisContext<Ast>
fn clone(&self) -> AnalysisContext<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 moreAuto Trait Implementations§
impl<Ast> Freeze for AnalysisContext<Ast>
impl<Ast> !RefUnwindSafe for AnalysisContext<Ast>
impl<Ast> !Send for AnalysisContext<Ast>
impl<Ast> !Sync for AnalysisContext<Ast>
impl<Ast> Unpin for AnalysisContext<Ast>
impl<Ast> !UnwindSafe for AnalysisContext<Ast>
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
)