#[repr(C)]pub struct AllocStats {
pub cumul_alloc_count: u64,
pub cumul_alloc_size: u64,
pub cumul_free_count: u64,
pub cumul_free_size: u64,
}
Expand description
Type for the data pointed to by the return value of ark_get_alloc_stats
.
Fields§
§cumul_alloc_count: u64
§cumul_alloc_size: u64
§cumul_free_count: u64
§cumul_free_size: u64
Implementations§
Source§impl AllocStats
impl AllocStats
pub fn current_allocated_size(&self) -> usize
pub fn current_allocation_count(&self) -> usize
Trait Implementations§
Source§impl Clone for AllocStats
impl Clone for AllocStats
Source§fn clone(&self) -> AllocStats
fn clone(&self) -> AllocStats
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 AllocStats
impl Debug for AllocStats
Source§impl Default for AllocStats
impl Default for AllocStats
Source§fn default() -> AllocStats
fn default() -> AllocStats
Returns the “default value” for a type. Read more
impl Copy for AllocStats
impl Pod for AllocStats
Auto Trait Implementations§
impl Freeze for AllocStats
impl RefUnwindSafe for AllocStats
impl Send for AllocStats
impl Sync for AllocStats
impl Unpin for AllocStats
impl UnwindSafe for AllocStats
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> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.