pub struct AnalyzeOptions {Show 15 fields
pub file_label: String,
pub module_base_dir: Option<String>,
pub loaded_modules: Option<Vec<LoadedModule>>,
pub include_intent_warnings: bool,
pub include_coverage_warnings: bool,
pub include_law_dependency_warnings: bool,
pub include_cse_warnings: bool,
pub include_perf_warnings: bool,
pub include_independence_warnings: bool,
pub include_naming_warnings: bool,
pub include_non_tail_warnings: bool,
pub include_unused_bindings: bool,
pub include_verify_run: bool,
pub include_why_summary: bool,
pub include_context_summary: bool,
}Expand description
Options for analyze_source. Defaults enable every available collector.
Fields§
§file_label: String§module_base_dir: Option<String>§loaded_modules: Option<Vec<LoadedModule>>Pre-resolved dependency modules (e.g. from a virtual filesystem
in the playground). When set, takes precedence over
module_base_dir — the type checker integrates these directly
instead of loading from disk.
include_intent_warnings: bool§include_coverage_warnings: bool§include_law_dependency_warnings: bool§include_cse_warnings: bool§include_perf_warnings: bool§include_independence_warnings: bool§include_naming_warnings: bool§include_non_tail_warnings: bool§include_unused_bindings: bool§include_verify_run: boolWhen true and the runtime feature is enabled, execute every
verify block found in the source and emit a diagnostic per failing
case. Off by default: analysis should stay pure static checks;
callers opt in explicitly.
include_why_summary: boolWhen true, populate AnalysisReport::why_summary with
per-function justification data. Off by default.
include_context_summary: boolWhen true, populate AnalysisReport::context_summary with
module shape / function / type / decision summary.
Implementations§
Source§impl AnalyzeOptions
impl AnalyzeOptions
pub fn new(file_label: impl Into<String>) -> Self
pub fn with_module_base_dir(self, dir: impl Into<String>) -> Self
pub fn with_loaded_modules(self, loaded: Vec<LoadedModule>) -> Self
Trait Implementations§
Source§impl Clone for AnalyzeOptions
impl Clone for AnalyzeOptions
Source§fn clone(&self) -> AnalyzeOptions
fn clone(&self) -> AnalyzeOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AnalyzeOptions
impl Debug for AnalyzeOptions
Auto Trait Implementations§
impl Freeze for AnalyzeOptions
impl RefUnwindSafe for AnalyzeOptions
impl Send for AnalyzeOptions
impl Sync for AnalyzeOptions
impl Unpin for AnalyzeOptions
impl UnsafeUnpin for AnalyzeOptions
impl UnwindSafe for AnalyzeOptions
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