Trait ra_ap_base_db::fixture::WithFixture[][src]

pub trait WithFixture: Default + SourceDatabaseExt + 'static {
    fn with_single_file(text: &str) -> (Self, FileId) { ... }
fn with_files(ra_fixture: &str) -> Self { ... }
fn with_position(ra_fixture: &str) -> (Self, FilePosition) { ... }
fn with_range(ra_fixture: &str) -> (Self, FileRange) { ... }
fn with_range_or_offset(ra_fixture: &str) -> (Self, FileId, RangeOrOffset) { ... }
fn test_crate(&self) -> CrateId { ... } }

Provided methods

fn with_single_file(text: &str) -> (Self, FileId)[src]

fn with_files(ra_fixture: &str) -> Self[src]

fn with_position(ra_fixture: &str) -> (Self, FilePosition)[src]

fn with_range(ra_fixture: &str) -> (Self, FileRange)[src]

fn with_range_or_offset(ra_fixture: &str) -> (Self, FileId, RangeOrOffset)[src]

fn test_crate(&self) -> CrateId[src]

Loading content...

Implementors

impl<DB: SourceDatabaseExt + Default + 'static> WithFixture for DB[src]

Loading content...