pub struct InScopeLookup;Expand description
In-scope properties, or model
Trait Implementations§
Source§impl LookupObject for InScopeLookup
impl LookupObject for InScopeLookup
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 InScopeLookup
impl RefUnwindSafe for InScopeLookup
impl Send for InScopeLookup
impl Sync for InScopeLookup
impl Unpin for InScopeLookup
impl UnwindSafe for InScopeLookup
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