cpclib_asm::assembler::macro

Trait Expandable

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