pub struct RaFixtureAnalysis {
pub db: RootDatabase,
/* private fields */
}Fields§
§db: RootDatabaseImplementations§
Source§impl RaFixtureAnalysis
impl RaFixtureAnalysis
pub fn analyze_ra_fixture( sema: &Semantics<'_, RootDatabase>, literal: String, expanded: &String, minicore: MiniCore<'_>, on_cursor: &mut dyn FnMut(TextRange), ) -> Option<RaFixtureAnalysis>
pub fn files(&self) -> impl Iterator<Item = FileId>
pub fn map_offset_down(&self, offset: TextSize) -> Option<(FileId, TextSize)>
pub fn map_range_down(&self, range: TextRange) -> Option<(FileId, TextRange)>
pub fn map_range_up( &self, virtual_file: FileId, range: TextRange, ) -> impl Iterator<Item = TextRange>
pub fn map_offset_up( &self, virtual_file: FileId, offset: TextSize, ) -> Option<TextSize>
pub fn is_sysroot_file(&self, file_id: FileId) -> bool
Auto Trait Implementations§
impl !Freeze for RaFixtureAnalysis
impl !RefUnwindSafe for RaFixtureAnalysis
impl !Send for RaFixtureAnalysis
impl !Sync for RaFixtureAnalysis
impl Unpin for RaFixtureAnalysis
impl !UnwindSafe for RaFixtureAnalysis
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, R> CollectAndApply<T, R> for T
impl<T, R> CollectAndApply<T, R> for T
§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