pub enum LookupResult {
Expression {
expression: Expression,
deprecated: Option<String>,
},
Enumeration(Rc<Enumeration>),
Namespace(BuiltinNamespace),
Callable(LookupResultCallable),
}Variants§
Expression
Fields
§
expression: ExpressionEnumeration(Rc<Enumeration>)
Namespace(BuiltinNamespace)
Callable(LookupResultCallable)
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<BuiltinFunction> for LookupResult
impl From<BuiltinFunction> for LookupResult
Source§fn from(function: BuiltinFunction) -> Self
fn from(function: BuiltinFunction) -> Self
Converts to this type from the input type.
Source§impl From<BuiltinMacroFunction> for LookupResult
impl From<BuiltinMacroFunction> for LookupResult
Source§fn from(macro_function: BuiltinMacroFunction) -> Self
fn from(macro_function: BuiltinMacroFunction) -> Self
Converts to this type from the input type.
Source§impl From<Callable> for LookupResult
impl From<Callable> 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(&SmolStr, LookupResult) -> Option<R>,
) -> Option<R>
fn for_each_entry<R>( &self, ctx: &LookupCtx<'_>, f: &mut impl FnMut(&SmolStr, 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 Freeze for LookupResult
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more