pub trait Expandable {
    // Required method
    fn expand(&self, env: &Env) -> Result<String, AssemblerError>;
}
Expand description

To be implemented for each element that can be expended based on some patterns (i.e. macros, structs)

Required Methods§

source

fn expand(&self, env: &Env) -> Result<String, AssemblerError>

Returns a string version of the element after expansion

Implementors§

source§

impl<'m, 'a, P: MacroParamElement> Expandable for MacroWithArgs<'m, 'a, P>

source§

impl<'s, 'a, P: MacroParamElement> Expandable for StructWithArgs<'s, 'a, P>