Struct epaint::stats::AllocInfo[][src]

pub struct AllocInfo { /* fields omitted */ }

Aggregate information about a bunch of allocations.

Implementations

impl AllocInfo[src]

pub fn from_galley(galley: &Galley) -> Self[src]

pub fn from_mesh(mesh: &Mesh) -> Self[src]

pub fn from_slice<T>(slice: &[T]) -> Self[src]

pub fn num_elements(&self) -> usize[src]

pub fn num_allocs(&self) -> usize[src]

pub fn num_bytes(&self) -> usize[src]

pub fn megabytes(&self) -> String[src]

pub fn format(&self, what: &str) -> String[src]

Trait Implementations

impl Add<AllocInfo> for AllocInfo[src]

type Output = AllocInfo

The resulting type after applying the + operator.

impl AddAssign<AllocInfo> for AllocInfo[src]

impl Clone for AllocInfo[src]

impl Copy for AllocInfo[src]

impl Default for AllocInfo[src]

impl<T> From<&'_ [T]> for AllocInfo[src]

impl PartialEq<AllocInfo> for AllocInfo[src]

impl StructuralPartialEq for AllocInfo[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.