Struct miden_assembly::ModuleAst
source · pub struct ModuleAst {
pub local_procs: Vec<ProcedureAst>,
}Expand description
An abstract syntax tree (AST) of a Miden code module.
A module AST consists of a list of procedure ASTs. These procedures could be local or exported.
Fields
local_procs: Vec<ProcedureAst>Implementations
sourceimpl ModuleAst
impl ModuleAst
sourcepub fn from_bytes(bytes: &[u8]) -> Result<Self, SerializationError>
pub fn from_bytes(bytes: &[u8]) -> Result<Self, SerializationError>
Returns a ModuleAst struct by its byte representation.
sourcepub fn named_ref<N>(&self, path: N) -> NamedModuleAst<'_>where
N: Into<String>,
pub fn named_ref<N>(&self, path: N) -> NamedModuleAst<'_>where
N: Into<String>,
Return a named reference of the module, binding it to an arbitrary path
Trait Implementations
impl Eq for ModuleAst
impl StructuralEq for ModuleAst
impl StructuralPartialEq for ModuleAst
Auto Trait Implementations
impl RefUnwindSafe for ModuleAst
impl Send for ModuleAst
impl Sync for ModuleAst
impl Unpin for ModuleAst
impl UnwindSafe for ModuleAst
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more