pub struct CloneInfo {
pub clone_count: usize,
pub is_clone: bool,
pub original_ptr: Option<usize>,
}Expand description
Enhanced cloning information for allocations.
Tracks clone operations including clone counts, original source tracking, and clone relationships.
Fields§
§clone_count: usizeNumber of times this object was cloned.
is_clone: boolWhether this allocation itself is a result of a clone.
original_ptr: Option<usize>If is_clone is true, points to the original object’s pointer.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CloneInfo
impl<'de> Deserialize<'de> for CloneInfo
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
impl StructuralPartialEq for CloneInfo
Auto Trait Implementations§
impl Freeze for CloneInfo
impl RefUnwindSafe for CloneInfo
impl Send for CloneInfo
impl Sync for CloneInfo
impl Unpin for CloneInfo
impl UnsafeUnpin for CloneInfo
impl UnwindSafe for CloneInfo
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