cairo_lang_sierra_generator::replace_ids

Trait SierraIdReplacer

source
pub trait SierraIdReplacer {
    // Required methods
    fn replace_libfunc_id(&self, id: &ConcreteLibfuncId) -> ConcreteLibfuncId;
    fn replace_type_id(&self, id: &ConcreteTypeId) -> ConcreteTypeId;
    fn replace_function_id(&self, sierra_id: &FunctionId) -> FunctionId;

    // Provided methods
    fn apply(&self, program: &Program) -> Program { ... }
    fn replace_generic_args(&self, generic_args: &mut Vec<GenericArg>) { ... }
}

Required Methods§

Provided Methods§

source

fn apply(&self, program: &Program) -> Program

Returns a new program where all the ids are replaced.

source

fn replace_generic_args(&self, generic_args: &mut Vec<GenericArg>)

Implementors§