pub struct ImportReport {
pub stubbed: Vec<(String, StubClass)>,
pub implemented_used: Vec<String>,
}Expand description
Outcome of classifying a module’s imports.
Fields§
§stubbed: Vec<(String, StubClass)>(name, class) for every import the loader had to stub.
implemented_used: Vec<String>Implemented host functions the guest actually imports.
Implementations§
Source§impl ImportReport
impl ImportReport
Sourcepub fn semantic_linked(&self) -> usize
pub fn semantic_linked(&self) -> usize
Count of semantic-capable stubbed imports the plugin LINKS (not necessarily calls).
Sourcepub fn semantic_stubs(&self) -> Vec<&str>
pub fn semantic_stubs(&self) -> Vec<&str>
Names of the semantic-capable stubs the plugin links.
Trait Implementations§
Source§impl Clone for ImportReport
impl Clone for ImportReport
Source§fn clone(&self) -> ImportReport
fn clone(&self) -> ImportReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ImportReport
impl Debug for ImportReport
Source§impl Default for ImportReport
impl Default for ImportReport
Source§fn default() -> ImportReport
fn default() -> ImportReport
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ImportReport
impl RefUnwindSafe for ImportReport
impl Send for ImportReport
impl Sync for ImportReport
impl Unpin for ImportReport
impl UnsafeUnpin for ImportReport
impl UnwindSafe for ImportReport
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