Struct ra_ap_test_utils::Fixture [−][src]
pub struct Fixture { pub path: String, pub text: String, pub krate: Option<String>, pub deps: Vec<String>, pub cfg_atoms: Vec<String>, pub cfg_key_values: Vec<(String, String)>, pub edition: Option<String>, pub env: FxHashMap<String, String>, pub introduce_new_source_root: Option<String>, }
Fields
path: String
text: String
krate: Option<String>
deps: Vec<String>
cfg_atoms: Vec<String>
cfg_key_values: Vec<(String, String)>
edition: Option<String>
env: FxHashMap<String, String>
introduce_new_source_root: Option<String>
Implementations
Parses text which looks like this:
//- some meta line 1 line 2 //- other meta
Fixture can also start with a minicore declaration:
//- minicore: sized
That will include a subset of libcore
into the fixture, see
minicore.rs
for what’s available.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Fixture
impl UnwindSafe for Fixture