Struct vhdl_lang::ast::search::FindAllEnt
source · pub struct FindAllEnt<'a, T: FnMut(EntRef<'a>) -> bool> {
pub result: Vec<EntRef<'a>>,
/* private fields */
}
Fields§
§result: Vec<EntRef<'a>>
Implementations§
source§impl<'a, T: FnMut(EntRef<'a>) -> bool> FindAllEnt<'a, T>
impl<'a, T: FnMut(EntRef<'a>) -> bool> FindAllEnt<'a, T>
pub fn new(root: &'a DesignRoot, cond: T) -> FindAllEnt<'a, T>
Trait Implementations§
source§impl<'a, T: FnMut(EntRef<'a>) -> bool> Searcher for FindAllEnt<'a, T>
impl<'a, T: FnMut(EntRef<'a>) -> bool> Searcher for FindAllEnt<'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 FindAllEnt<'a, T>where
T: Freeze,
impl<'a, T> !RefUnwindSafe for FindAllEnt<'a, T>
impl<'a, T> Send for FindAllEnt<'a, T>where
T: Send,
impl<'a, T> Sync for FindAllEnt<'a, T>where
T: Sync,
impl<'a, T> Unpin for FindAllEnt<'a, T>where
T: Unpin,
impl<'a, T> !UnwindSafe for FindAllEnt<'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