pub enum MemClass {
Neutral,
TradesMemForSpeed,
SavesMem,
}Expand description
How an optimization trades memory against speed.
Variants§
Neutral
Neither clearly grows nor shrinks memory.
TradesMemForSpeed
Spends memory (extra allocation, code growth, caches) to gain speed.
SavesMem
Shrinks memory (tighter representations, fewer allocations).
Trait Implementations§
impl Copy for MemClass
impl Eq for MemClass
impl StructuralPartialEq for MemClass
Auto Trait Implementations§
impl Freeze for MemClass
impl RefUnwindSafe for MemClass
impl Send for MemClass
impl Sync for MemClass
impl Unpin for MemClass
impl UnsafeUnpin for MemClass
impl UnwindSafe for MemClass
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