cairo_lang_semantic::expr::pattern

Trait PatternVariablesQueryable

Source
pub trait PatternVariablesQueryable {
    // Required method
    fn query(&self, id: PatternId) -> Vec<PatternVariable>;
}
Expand description

Polymorphic container of Pattern objects used for querying pattern variables.

Required Methods§

Source

fn query(&self, id: PatternId) -> Vec<PatternVariable>

Lookup the pattern in this container and then get Pattern::variables from it.

Implementations on Foreign Types§

Source§

impl PatternVariablesQueryable for Arena<Pattern>

Implementors§