Enum i_slint_compiler::lookup::LookupResult
source · pub enum LookupResult {
Expression {
expression: Expression,
deprecated: Option<String>,
},
Enumeration(Rc<Enumeration>),
Namespace(BuiltinNamespace),
}
Variants§
Implementations§
source§impl LookupResult
impl LookupResult
pub fn deprecated(&self) -> Option<&str>
Trait Implementations§
source§impl Debug for LookupResult
impl Debug for LookupResult
source§impl From<Expression> for LookupResult
impl From<Expression> for LookupResult
source§fn from(expression: Expression) -> Self
fn from(expression: Expression) -> Self
Converts to this type from the input type.
source§impl LookupObject for LookupResult
impl LookupObject for LookupResult
source§fn for_each_entry<R>(
&self,
ctx: &LookupCtx<'_>,
f: &mut impl FnMut(&str, LookupResult) -> Option<R>
) -> Option<R>
fn for_each_entry<R>( &self, ctx: &LookupCtx<'_>, f: &mut impl FnMut(&str, LookupResult) -> 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
Auto Trait Implementations§
impl !RefUnwindSafe for LookupResult
impl !Send for LookupResult
impl !Sync for LookupResult
impl Unpin for LookupResult
impl !UnwindSafe for LookupResult
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more