Struct rustc_session::options::Options [−][src]
pub struct Options {Show fields
pub crate_types: Vec<CrateType>,
pub optimize: OptLevel,
pub debug_assertions: bool,
pub debuginfo: DebugInfo,
pub lint_opts: Vec<(String, Level)>,
pub lint_cap: Option<Level>,
pub describe_lints: bool,
pub output_types: OutputTypes,
pub search_paths: Vec<SearchPath>,
pub libs: Vec<(String, Option<String>, NativeLibKind)>,
pub maybe_sysroot: Option<PathBuf>,
pub target_triple: TargetTriple,
pub test: bool,
pub error_format: ErrorOutputType,
pub incremental: Option<PathBuf>,
pub debugging_opts: DebuggingOptions,
pub prints: Vec<PrintRequest>,
pub borrowck_mode: BorrowckMode,
pub cg: CodegenOptions,
pub externs: Externs,
pub extern_dep_specs: ExternDepSpecs,
pub crate_name: Option<String>,
pub alt_std_name: Option<String>,
pub unstable_features: UnstableFeatures,
pub actually_rustdoc: bool,
pub trimmed_def_paths: TrimmedDefPaths,
pub cli_forced_codegen_units: Option<usize>,
pub cli_forced_thinlto_off: bool,
pub remap_path_prefix: Vec<(PathBuf, PathBuf)>,
pub edition: Edition,
pub json_artifact_notifications: bool,
pub json_unused_externs: bool,
pub pretty: Option<PpMode>,
}Fields
crate_types: Vec<CrateType>optimize: OptLeveldebug_assertions: booldebuginfo: DebugInfolint_opts: Vec<(String, Level)>lint_cap: Option<Level>describe_lints: booloutput_types: OutputTypessearch_paths: Vec<SearchPath>libs: Vec<(String, Option<String>, NativeLibKind)>maybe_sysroot: Option<PathBuf>target_triple: TargetTripletest: boolerror_format: ErrorOutputTypeincremental: Option<PathBuf>debugging_opts: DebuggingOptionsprints: Vec<PrintRequest>borrowck_mode: BorrowckModecg: CodegenOptionsexterns: Externsextern_dep_specs: ExternDepSpecscrate_name: Option<String>alt_std_name: Option<String>unstable_features: UnstableFeaturesactually_rustdoc: booltrimmed_def_paths: TrimmedDefPathscli_forced_codegen_units: Option<usize>cli_forced_thinlto_off: boolremap_path_prefix: Vec<(PathBuf, PathBuf)>edition: Editionjson_artifact_notifications: booljson_unused_externs: boolpretty: Option<PpMode>Implementations
impl Options[src]
pub fn build_dep_graph(&self) -> bool[src]
Returns true if there is a reason to build the dep graph.
pub fn file_path_mapping(&self) -> FilePathMapping[src]
pub fn will_create_output_file(&self) -> bool[src]
Returns true if there will be an output file generated.
pub fn share_generics(&self) -> bool[src]
impl Options[src]
pub fn dep_tracking_hash(&self) -> u64[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,