pub struct CompileInput<'a> {
pub kind: CompilerKind,
pub lang: Lang,
pub edition: Edition,
pub build: &'a BuildSettings,
pub profile: &'a ProfileSettings,
pub include_dirs: &'a [PathBuf],
pub test: bool,
pub mode: Mode,
}Expand description
What one compile of the build is made from.
Fields§
§kind: CompilerKindThe driver.
lang: LangThis source’s language, from its extension (docs/en/specs/project-layout.md,
“Target files”).
edition: EditionThe standard for this source: the package’s edition when lang is the
package’s language, otherwise that language’s default.
build: &'a BuildSettingsThe resolved build settings.
profile: &'a ProfileSettingsThe resolved profile.
include_dirs: &'a [PathBuf]The include directories cuno always adds (src/, the bundled
headers), before build.include_dirs.
test: boolA test build, which defines CUNO_TEST.
mode: ModeCompile or check.
Trait Implementations§
Source§impl<'a> Clone for CompileInput<'a>
impl<'a> Clone for CompileInput<'a>
impl<'a> Copy for CompileInput<'a>
Auto Trait Implementations§
impl<'a> Forget for CompileInput<'a>
impl<'a> Freeze for CompileInput<'a>
impl<'a> Move for CompileInput<'a>
impl<'a> RefUnwindSafe for CompileInput<'a>
impl<'a> Send for CompileInput<'a>
impl<'a> Sync for CompileInput<'a>where
RawVecInner: Sync,
impl<'a> Unpin for CompileInput<'a>
impl<'a> UnsafeUnpin for CompileInput<'a>
impl<'a> UnwindSafe for CompileInput<'a>
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