pub struct FixtureWithProjectMeta {
pub fixture: Vec<Fixture>,
pub mini_core: Option<MiniCore>,
pub proc_macro_names: Vec<String>,
pub toolchain: Option<String>,
pub target_data_layout: String,
pub target_arch: String,
}Fields§
§fixture: Vec<Fixture>§mini_core: Option<MiniCore>§proc_macro_names: Vec<String>§toolchain: Option<String>§target_data_layout: StringSpecifies LLVM data layout to be used.
You probably don’t want to manually specify this. See LLVM manual for the syntax, if you must: https://llvm.org/docs/LangRef.html#data-layout
target_arch: StringSpecifies the target architecture.
Implementations§
Source§impl FixtureWithProjectMeta
impl FixtureWithProjectMeta
Sourcepub fn parse(ra_fixture: &str) -> Self
pub fn parse(ra_fixture: &str) -> Self
Parses text which looks like this:
//- some meta
line 1
line 2
//- other metaFixture can also start with a proc_macros and minicore declaration (in that order):
//- toolchain: nightly
//- proc_macros: identity
//- minicore: sizedThat will set toolchain to nightly and include predefined proc macros and a subset of
libcore into the fixture, see minicore.rs for what’s available. Note that toolchain
defaults to stable.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FixtureWithProjectMeta
impl RefUnwindSafe for FixtureWithProjectMeta
impl Send for FixtureWithProjectMeta
impl Sync for FixtureWithProjectMeta
impl Unpin for FixtureWithProjectMeta
impl UnwindSafe for FixtureWithProjectMeta
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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