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

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_or_offset(ra_fixture: &str) -> (Self, FileId, RangeOrOffset) { ... }
fn test_crate(&self) -> CrateId { ... } }

Provided methods

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_or_offset(ra_fixture: &str) -> (Self, FileId, RangeOrOffset)

fn test_crate(&self) -> CrateId

Loading content...

Implementors

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

Loading content...