#[repr(u8)]pub enum OwnershipOp {
Create = 0,
Drop = 1,
RcClone = 2,
ArcClone = 3,
Move = 4,
SharedBorrow = 5,
MutBorrow = 6,
}Expand description
Ownership operation types - only track critical operations
Variants§
Create = 0
Object creation
Drop = 1
Object deallocation
RcClone = 2
Rc clone operation
ArcClone = 3
Arc clone operation
Move = 4
Move operation (value transfer)
Shared borrow operation (&T)
MutBorrow = 6
Mutable borrow operation (&mut T)
Trait Implementations§
Source§impl Clone for OwnershipOp
impl Clone for OwnershipOp
Source§fn clone(&self) -> OwnershipOp
fn clone(&self) -> OwnershipOp
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 moreimpl Copy for OwnershipOp
Source§impl Debug for OwnershipOp
impl Debug for OwnershipOp
Source§impl<'de> Deserialize<'de> for OwnershipOp
impl<'de> Deserialize<'de> for OwnershipOp
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 Eq for OwnershipOp
Source§impl PartialEq for OwnershipOp
impl PartialEq for OwnershipOp
Source§impl Serialize for OwnershipOp
impl Serialize for OwnershipOp
impl StructuralPartialEq for OwnershipOp
Auto Trait Implementations§
impl Freeze for OwnershipOp
impl RefUnwindSafe for OwnershipOp
impl Send for OwnershipOp
impl Sync for OwnershipOp
impl Unpin for OwnershipOp
impl UnsafeUnpin for OwnershipOp
impl UnwindSafe for OwnershipOp
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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