pub enum MemoryUsageValue {
Data,
Dynamic,
Upload,
Download,
}
Expand description
Well-known memory usage types.
Variants§
Trait Implementations§
Source§impl Clone for MemoryUsageValue
impl Clone for MemoryUsageValue
Source§fn clone(&self) -> MemoryUsageValue
fn clone(&self) -> MemoryUsageValue
Returns a copy 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 MemoryUsageValue
impl Debug for MemoryUsageValue
Source§impl MemoryUsage for MemoryUsageValue
impl MemoryUsage for MemoryUsageValue
Memory usage trait.
Source§fn properties_required(&self) -> Properties
fn properties_required(&self) -> Properties
Get set of properties required for the usage.
Source§fn memory_fitness(&self, properties: Properties) -> u32
fn memory_fitness(&self, properties: Properties) -> u32
Get comparable fitness value for memory properties. Read more
Source§fn allocator_fitness(&self, kind: Kind) -> u32
fn allocator_fitness(&self, kind: Kind) -> u32
Get comparable fitness value for memory allocator.
Source§impl PartialEq for MemoryUsageValue
impl PartialEq for MemoryUsageValue
impl Copy for MemoryUsageValue
impl Eq for MemoryUsageValue
impl StructuralPartialEq for MemoryUsageValue
Auto Trait Implementations§
impl Freeze for MemoryUsageValue
impl RefUnwindSafe for MemoryUsageValue
impl Send for MemoryUsageValue
impl Sync for MemoryUsageValue
impl Unpin for MemoryUsageValue
impl UnwindSafe for MemoryUsageValue
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,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)