pub struct FindEnt<'a, T: Fn(EntRef<'a>) -> bool> {
pub result: Option<EntRef<'a>>,
/* private fields */
}
Fields§
§result: Option<EntRef<'a>>
Implementations§
Trait Implementations§
source§impl<'a, T: Fn(EntRef<'a>) -> bool> Searcher for FindEnt<'a, T>
impl<'a, T: Fn(EntRef<'a>) -> bool> Searcher for FindEnt<'a, T>
source§fn search_decl(
&mut self,
_ctx: &dyn TokenAccess,
decl: FoundDeclaration<'_>
) -> SearchState
fn search_decl( &mut self, _ctx: &dyn TokenAccess, decl: FoundDeclaration<'_> ) -> SearchState
Search a declaration of a named entity
source§fn search_pos_with_ref(
&mut self,
_ctx: &dyn TokenAccess,
_pos: &SrcPos,
_ref: &Reference
) -> SearchState
fn search_pos_with_ref( &mut self, _ctx: &dyn TokenAccess, _pos: &SrcPos, _ref: &Reference ) -> SearchState
Search an position that has a reference to a declaration
source§fn search_designator_ref(
&mut self,
ctx: &dyn TokenAccess,
pos: &SrcPos,
designator: &WithRef<Designator>
) -> SearchState
fn search_designator_ref( &mut self, ctx: &dyn TokenAccess, pos: &SrcPos, designator: &WithRef<Designator> ) -> SearchState
Search a designator that has a reference to a declaration
source§fn search_ident_ref(
&mut self,
ctx: &dyn TokenAccess,
ident: &WithRef<Ident>
) -> SearchState
fn search_ident_ref( &mut self, ctx: &dyn TokenAccess, ident: &WithRef<Ident> ) -> SearchState
Search an identifier that has a reference to a declaration
fn search_with_pos( &mut self, _ctx: &dyn TokenAccess, _pos: &SrcPos ) -> SearchState
Auto Trait Implementations§
impl<'a, T> Freeze for FindEnt<'a, T>where
T: Freeze,
impl<'a, T> !RefUnwindSafe for FindEnt<'a, T>
impl<'a, T> Send for FindEnt<'a, T>where
T: Send,
impl<'a, T> Sync for FindEnt<'a, T>where
T: Sync,
impl<'a, T> Unpin for FindEnt<'a, T>where
T: Unpin,
impl<'a, T> !UnwindSafe for FindEnt<'a, T>
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