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§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