Struct ide_db::search::FindUsages
source · pub struct FindUsages<'a> { /* private fields */ }
Implementations§
source§impl<'a> FindUsages<'a>
impl<'a> FindUsages<'a>
sourcepub fn include_self_refs(self) -> Self
pub fn include_self_refs(self) -> Self
Enable searching for Self
when the definition is a type or self
for modules.
sourcepub fn in_scope(self, scope: &'a SearchScope) -> Self
pub fn in_scope(self, scope: &'a SearchScope) -> Self
Limit the search to a given SearchScope
.
sourcepub fn set_scope(self, scope: Option<&'a SearchScope>) -> Self
pub fn set_scope(self, scope: Option<&'a SearchScope>) -> Self
Limit the search to a given SearchScope
.
pub fn with_rename(self, rename: Option<&'a Rename>) -> Self
pub fn at_least_one(&self) -> bool
pub fn all(self) -> UsageSearchResult
pub fn search( &self, sink: &mut dyn FnMut(EditionedFileId, FileReference) -> bool, )
Trait Implementations§
source§impl<'a> Clone for FindUsages<'a>
impl<'a> Clone for FindUsages<'a>
source§fn clone(&self) -> FindUsages<'a>
fn clone(&self) -> FindUsages<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'a> Freeze for FindUsages<'a>
impl<'a> !RefUnwindSafe for FindUsages<'a>
impl<'a> !Send for FindUsages<'a>
impl<'a> !Sync for FindUsages<'a>
impl<'a> Unpin for FindUsages<'a>
impl<'a> !UnwindSafe for FindUsages<'a>
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
§impl<T> Cast for T
impl<T> Cast for T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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