Skip to main content

AnalyzeOptions

Struct AnalyzeOptions 

Source
pub struct AnalyzeOptions {
Show 18 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_traversal_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_effectful_warnings: bool, pub include_verify_run: bool, pub verify_run_hostile: 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_traversal_warnings: bool

0.15 Traversal antipattern lints — surfaces uses of recursive list builders feeding Vector.fromList, Map.fromList, or a standalone List.reverse, where Aver has a more direct primitive. Companion to the buffer-build deforestation pass: what we don’t fuse, we warn about.

§include_independence_warnings: bool§include_naming_warnings: bool§include_non_tail_warnings: bool§include_unused_bindings: bool§include_verify_effectful_warnings: bool

Plain cases-form verify fn on an effectful fn whose effect list includes at least one generative effect. The test runs with real effects and the RHS is compared against a non-deterministic value.

§include_verify_run: bool

When 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.

§verify_run_hostile: bool

When true and include_verify_run is also true, run verify blocks under --hostile mode: typed given domains are expanded with the per-type boundary set and each case is multiplied by the adversarial effect-profile cartesian. Failures that surface only here are flagged with from_hostile = true so the renderer can suggest weakening the law (when) or pinning the effect (given).

§include_why_summary: bool

When true, populate AnalysisReport::why_summary with per-function justification data. Off by default.

§include_context_summary: bool

When true, populate AnalysisReport::context_summary with module shape / function / type / decision summary.

Implementations§

Source§

impl AnalyzeOptions

Source

pub fn new(file_label: impl Into<String>) -> Self

Source

pub fn with_module_base_dir(self, dir: impl Into<String>) -> Self

Source

pub fn with_loaded_modules(self, loaded: Vec<LoadedModule>) -> Self

Trait Implementations§

Source§

impl Clone for AnalyzeOptions

Source§

fn clone(&self) -> AnalyzeOptions

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for AnalyzeOptions

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for AnalyzeOptions

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V