pub enum HeapAllocKind {
Malloc,
New,
Calloc,
Realloc,
Other(String),
}Expand description
Kind of heap allocation operation.
Variants§
Malloc
malloc-family allocation.
New
C++ new operator.
Calloc
calloc (zero-initialized).
Realloc
realloc (resize).
Other(String)
Other/custom allocator (name preserved as string).
Implementations§
Trait Implementations§
Source§impl Clone for HeapAllocKind
impl Clone for HeapAllocKind
Source§fn clone(&self) -> HeapAllocKind
fn clone(&self) -> HeapAllocKind
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 HeapAllocKind
impl Debug for HeapAllocKind
Source§impl<'de> Deserialize<'de> for HeapAllocKind
impl<'de> Deserialize<'de> for HeapAllocKind
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
Source§impl Display for HeapAllocKind
impl Display for HeapAllocKind
Source§impl From<&str> for HeapAllocKind
impl From<&str> for HeapAllocKind
Source§impl Hash for HeapAllocKind
impl Hash for HeapAllocKind
Source§impl PartialEq for HeapAllocKind
impl PartialEq for HeapAllocKind
Source§impl Serialize for HeapAllocKind
impl Serialize for HeapAllocKind
impl Eq for HeapAllocKind
impl StructuralPartialEq for HeapAllocKind
Auto Trait Implementations§
impl Freeze for HeapAllocKind
impl RefUnwindSafe for HeapAllocKind
impl Send for HeapAllocKind
impl Sync for HeapAllocKind
impl Unpin for HeapAllocKind
impl UnsafeUnpin for HeapAllocKind
impl UnwindSafe for HeapAllocKind
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.