Struct ra_ap_ide_db::search::SearchScope [−][src]
pub struct SearchScope { /* fields omitted */ }
Expand description
Generally, search_scope
returns files that might contain references for the element.
For pub(crate)
things it’s a crate, for pub
things it’s a crate and dependant crates.
In some cases, the location of the references is known to within a TextRange
,
e.g. for things like local variables.
Implementations
impl SearchScope
[src]
impl SearchScope
[src]pub fn empty() -> SearchScope
[src]
pub fn single_file(file: FileId) -> SearchScope
[src]
pub fn file_range(range: FileRange) -> SearchScope
[src]
pub fn files(files: &[FileId]) -> SearchScope
[src]
pub fn intersection(&self, other: &SearchScope) -> SearchScope
[src]
Trait Implementations
impl IntoIterator for SearchScope
[src]
impl IntoIterator for SearchScope
[src]Auto Trait Implementations
impl RefUnwindSafe for SearchScope
impl Send for SearchScope
impl Sync for SearchScope
impl Unpin for SearchScope
impl UnwindSafe for SearchScope
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Cast for T
impl<T> Cast for T
fn cast<U>(self, interner: &<U as HasInterner>::Interner) -> U where
Self: CastTo<U>,
U: HasInterner,
fn cast<U>(self, interner: &<U as HasInterner>::Interner) -> U where
Self: CastTo<U>,
U: HasInterner,
Cast a value to type U
using CastTo
.
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Any for T where
T: Any,
T: Any,