pub struct AllocInfo { /* private fields */ }
Expand description
Aggregate information about a bunch of allocations.
Implementations
sourceimpl AllocInfo
impl AllocInfo
pub fn from_galley(galley: &Galley) -> AllocInfo
pub fn from_mesh(mesh: &Mesh) -> AllocInfo
pub fn from_slice<T>(slice: &[T]) -> AllocInfo
pub fn num_elements(&self) -> usize
pub fn num_allocs(&self) -> usize
pub fn num_bytes(&self) -> usize
pub fn megabytes(&self) -> String
pub fn format(&self, what: &str) -> String
Trait Implementations
sourceimpl AddAssign<AllocInfo> for AllocInfo
impl AddAssign<AllocInfo> for AllocInfo
sourcefn add_assign(&mut self, rhs: AllocInfo)
fn add_assign(&mut self, rhs: AllocInfo)
Performs the
+=
operation. Read moreimpl Copy for AllocInfo
impl StructuralPartialEq for AllocInfo
Auto Trait Implementations
impl RefUnwindSafe for AllocInfo
impl Send for AllocInfo
impl Sync for AllocInfo
impl Unpin for AllocInfo
impl UnwindSafe for AllocInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more