pub enum TemporalPattern {
PairedOperation {
open_method: String,
close_method: String,
},
LifecycleSequence {
phase: LifecyclePhase,
method_name: String,
},
StateCheck {
check_method: String,
implied_prerequisite: String,
},
RustDropImpl {
type_name: String,
},
RustGuardPattern {
guard_type: String,
resource: String,
},
RustAsyncSpawnWithoutJoin,
RustUnsafeManualResource {
operation: String,
},
RustBuilderPattern {
type_name: String,
required_methods: Vec<String>,
},
}Expand description
Types of temporal coupling patterns
Variants§
PairedOperation
Paired operations that must be balanced (open/close, lock/unlock)
LifecycleSequence
Lifecycle methods that suggest initialization order
StateCheck
State check suggesting temporal dependency
RustDropImpl
Rust-specific: Drop impl provides cleanup
RustGuardPattern
Rust-specific: Guard pattern (MutexGuard, RwLockGuard, etc.)
RustAsyncSpawnWithoutJoin
Rust-specific: Async spawn without join
RustUnsafeManualResource
Rust-specific: Unsafe block with manual resource management
RustBuilderPattern
Rust-specific: Builder pattern detected
Trait Implementations§
Source§impl Clone for TemporalPattern
impl Clone for TemporalPattern
Source§fn clone(&self) -> TemporalPattern
fn clone(&self) -> TemporalPattern
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 TemporalPattern
impl Debug for TemporalPattern
Source§impl Hash for TemporalPattern
impl Hash for TemporalPattern
Source§impl PartialEq for TemporalPattern
impl PartialEq for TemporalPattern
impl Eq for TemporalPattern
impl StructuralPartialEq for TemporalPattern
Auto Trait Implementations§
impl Freeze for TemporalPattern
impl RefUnwindSafe for TemporalPattern
impl Send for TemporalPattern
impl Sync for TemporalPattern
impl Unpin for TemporalPattern
impl UnwindSafe for TemporalPattern
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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