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§