pub struct TypeLifecyclePattern {
pub type_name: String,
pub avg_allocations_per_var: f64,
pub memory_growth_factor: f64,
pub typical_lifetime_range: (u64, u64),
pub ownership_pattern: OwnershipPattern,
pub risk_level: RiskLevel,
}
Expand description
Type-specific lifecycle patterns
Fields§
§type_name: String
Type name (String, Vec, Box, etc.)
avg_allocations_per_var: f64
Average allocation count per variable of this type
memory_growth_factor: f64
Memory growth factor (peak_size / initial_size)
typical_lifetime_range: (u64, u64)
Typical lifetime range for this type
ownership_pattern: OwnershipPattern
Ownership pattern (owned, borrowed, shared)
risk_level: RiskLevel
Risk level for this type
Trait Implementations§
Source§impl Clone for TypeLifecyclePattern
impl Clone for TypeLifecyclePattern
Source§fn clone(&self) -> TypeLifecyclePattern
fn clone(&self) -> TypeLifecyclePattern
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 TypeLifecyclePattern
impl Debug for TypeLifecyclePattern
Source§impl<'de> Deserialize<'de> for TypeLifecyclePattern
impl<'de> Deserialize<'de> for TypeLifecyclePattern
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TypeLifecyclePattern
impl RefUnwindSafe for TypeLifecyclePattern
impl Send for TypeLifecyclePattern
impl Sync for TypeLifecyclePattern
impl Unpin for TypeLifecyclePattern
impl UnwindSafe for TypeLifecyclePattern
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