pub struct Fixture {
    pub path: String,
    pub text: String,
    pub krate: Option<String>,
    pub deps: Vec<String>,
    pub extern_prelude: Option<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>,
    pub target_data_layout: Option<String>,
}

Fields§

§path: String§text: String§krate: Option<String>§deps: Vec<String>§extern_prelude: Option<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>§target_data_layout: Option<String>

Implementations§

Parses text which looks like this:

//- some meta
line 1
line 2
//- other meta

Fixture can also start with a proc_macros and minicore declaration(in that order):

//- proc_macros: identity
//- minicore: sized

That will include predefined proc macros and a subset of libcore into the fixture, see minicore.rs for what’s available.

Trait Implementations§

Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==.
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.