pub struct ReferencePattern {
pub pattern_name: String,
pub creation_frequency: f64,
pub average_lifetime: Duration,
pub typical_access_pattern: AccessPattern,
pub common_reference_chains: Vec<Vec<String>>,
}Expand description
Pattern of reference creation and usage
Fields§
§pattern_name: StringName identifying this reference pattern
creation_frequency: f64Frequency of reference creation per second
average_lifetime: DurationAverage lifetime before reference is dropped
typical_access_pattern: AccessPatternTypical access pattern observed for these references
common_reference_chains: Vec<Vec<String>>Common chains of references observed in this pattern
Trait Implementations§
Source§impl Clone for ReferencePattern
impl Clone for ReferencePattern
Source§fn clone(&self) -> ReferencePattern
fn clone(&self) -> ReferencePattern
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ReferencePattern
impl RefUnwindSafe for ReferencePattern
impl Send for ReferencePattern
impl Sync for ReferencePattern
impl Unpin for ReferencePattern
impl UnsafeUnpin for ReferencePattern
impl UnwindSafe for ReferencePattern
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
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