Trait sixtyfps_compilerlib::lookup::LookupObject[][src]

pub trait LookupObject {
    fn for_each_entry<R>(
        &self,
        ctx: &LookupCtx<'_>,
        f: &mut impl FnMut(&str, Expression) -> Option<R>
    ) -> Option<R>; fn lookup(&self, ctx: &LookupCtx<'_>, name: &str) -> Option<LookupResult> { ... } }

Represent an object which has properties which can be accessible

Required methods

fn for_each_entry<R>(
    &self,
    ctx: &LookupCtx<'_>,
    f: &mut impl FnMut(&str, Expression) -> Option<R>
) -> Option<R>
[src]

Will call the function for each entry (usefull for completion) If the function return Some, it will imediatly be returned and not called further

Loading content...

Provided methods

fn lookup(&self, ctx: &LookupCtx<'_>, name: &str) -> Option<LookupResult>[src]

Perform a lookup of a given identifier. One does not have to re-implment unless we can make it faster

Loading content...

Implementations on Foreign Types

impl<T1: LookupObject, T2: LookupObject> LookupObject for (T1, T2)[src]

impl LookupObject for Rc<Enumeration>[src]

Loading content...

Implementors

impl LookupObject for Expression[src]

impl LookupObject for ElementRc[src]

Loading content...