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> { ... } }
Expand description
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>
fn for_each_entry<R>(
&self,
ctx: &LookupCtx<'_>,
f: &mut impl FnMut(&str, Expression) -> Option<R>
) -> Option<R>
Will call the function for each entry (useful for completion) If the function return Some, it will immediately be returned and not called further
Provided methods
Implementations on Foreign Types
fn for_each_entry<R>(
&self,
ctx: &LookupCtx<'_>,
f: &mut impl FnMut(&str, Expression) -> Option<R>
) -> Option<R>
fn for_each_entry<R>(
&self,
_ctx: &LookupCtx<'_>,
f: &mut impl FnMut(&str, Expression) -> Option<R>
) -> Option<R>