pub struct LifecycleDetectorConfig {
pub enable_drop_trait_analysis: bool,
pub enable_borrow_violation_detection: bool,
pub enable_lifetime_violation_detection: bool,
pub enable_ownership_pattern_detection: bool,
pub max_lifetime_analysis_depth: usize,
}Expand description
Configuration for lifecycle detector
Fields§
§enable_drop_trait_analysis: boolEnable drop trait analysis
enable_borrow_violation_detection: boolEnable borrow violation detection
enable_lifetime_violation_detection: boolEnable lifetime violation detection
enable_ownership_pattern_detection: boolEnable ownership pattern detection
max_lifetime_analysis_depth: usizeMaximum depth for lifetime analysis
Trait Implementations§
Source§impl Clone for LifecycleDetectorConfig
impl Clone for LifecycleDetectorConfig
Source§fn clone(&self) -> LifecycleDetectorConfig
fn clone(&self) -> LifecycleDetectorConfig
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 LifecycleDetectorConfig
impl Debug for LifecycleDetectorConfig
Auto Trait Implementations§
impl Freeze for LifecycleDetectorConfig
impl RefUnwindSafe for LifecycleDetectorConfig
impl Send for LifecycleDetectorConfig
impl Sync for LifecycleDetectorConfig
impl Unpin for LifecycleDetectorConfig
impl UnsafeUnpin for LifecycleDetectorConfig
impl UnwindSafe for LifecycleDetectorConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more