#[non_exhaustive]pub struct CheckOptions { /* private fields */ }Expand description
Options that control how one terminal architecture check runs.
The default is deliberately defensive and quiet: empty selections fail, logging is disabled, an existing graph cache may be reused, and test-only source targets are excluded. Builders consume and return the bag so a configured value can be cloned and branched without mutation.
Implementations§
Source§impl CheckOptions
impl CheckOptions
Sourcepub const fn allows_empty_tests(&self) -> bool
pub const fn allows_empty_tests(&self) -> bool
Returns whether a selector that matches nothing may pass.
Sourcepub const fn with_allow_empty_tests(self, allow: bool) -> Self
pub const fn with_allow_empty_tests(self, allow: bool) -> Self
Controls whether a selector that matches nothing may pass.
Sourcepub const fn logging(&self) -> Option<&LoggingOptions>
pub const fn logging(&self) -> Option<&LoggingOptions>
Returns this check’s logging configuration, or None when it is quiet.
Sourcepub fn with_logging(self, logging: LoggingOptions) -> Self
pub fn with_logging(self, logging: LoggingOptions) -> Self
Enables per-check logging with the supplied configuration.
Sourcepub const fn clears_cache(&self) -> bool
pub const fn clears_cache(&self) -> bool
Returns whether the shared extraction cache must be cleared before this check.
Sourcepub const fn with_clear_cache(self, clear: bool) -> Self
pub const fn with_clear_cache(self, clear: bool) -> Self
Controls whether extraction starts from an empty graph cache.
Sourcepub const fn includes_test_sources(&self) -> bool
pub const fn includes_test_sources(&self) -> bool
Returns whether Cargo test, example, and benchmark targets participate in analysis.
Sourcepub const fn with_test_sources(self, include: bool) -> Self
pub const fn with_test_sources(self, include: bool) -> Self
Controls whether Cargo test, example, and benchmark targets participate in analysis.
Trait Implementations§
Source§impl Clone for CheckOptions
impl Clone for CheckOptions
Source§fn clone(&self) -> CheckOptions
fn clone(&self) -> CheckOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CheckOptions
impl Debug for CheckOptions
Source§impl Default for CheckOptions
impl Default for CheckOptions
Source§impl PartialEq for CheckOptions
impl PartialEq for CheckOptions
impl Eq for CheckOptions
impl StructuralPartialEq for CheckOptions
Auto Trait Implementations§
impl Freeze for CheckOptions
impl RefUnwindSafe for CheckOptions
impl Send for CheckOptions
impl Sync for CheckOptions
impl Unpin for CheckOptions
impl UnwindSafe for CheckOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.