Struct nyar_wasm::CanonicalWasi
source · pub struct CanonicalWasi {
pub name: Arc<str>,
pub graph: DependentGraph,
pub imports: Vec<CanonicalImport>,
pub type_signatures: bool,
pub indent_text: &'static str,
}
Fields§
§name: Arc<str>
§graph: DependentGraph
§imports: Vec<CanonicalImport>
§type_signatures: bool
§indent_text: &'static str
Implementations§
source§impl CanonicalWasi
impl CanonicalWasi
pub fn get_function(&self, symbol: &Identifier) -> Option<&WasiFunction>
pub fn draw_mermaid(&self) -> String
source§impl CanonicalWasi
impl CanonicalWasi
pub fn new(graph: DependentGraph) -> Result<Self, NyarError>
pub fn add_instance(&mut self, instance: WasiInstance)
pub fn encode(&self) -> String
Trait Implementations§
source§impl AddAssign<WasiInstance> for CanonicalWasi
impl AddAssign<WasiInstance> for CanonicalWasi
source§fn add_assign(&mut self, rhs: WasiInstance)
fn add_assign(&mut self, rhs: WasiInstance)
Performs the
+=
operation. Read moreAuto Trait Implementations§
impl Freeze for CanonicalWasi
impl RefUnwindSafe for CanonicalWasi
impl Send for CanonicalWasi
impl Sync for CanonicalWasi
impl Unpin for CanonicalWasi
impl UnwindSafe for CanonicalWasi
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