pub enum AllocationStrategy {
BestFit,
FirstFit,
ExactFit,
PowerOfTwo,
}Expand description
Workspace allocation strategy.
Variants§
BestFit
Best fit - find smallest workspace that fits
FirstFit
First fit - use first workspace that fits
ExactFit
Exact fit - only use exact size matches
PowerOfTwo
Power of 2 - round up to power of 2 sizes
Trait Implementations§
Source§impl Clone for AllocationStrategy
impl Clone for AllocationStrategy
Source§fn clone(&self) -> AllocationStrategy
fn clone(&self) -> AllocationStrategy
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 AllocationStrategy
impl Debug for AllocationStrategy
Source§impl<'de> Deserialize<'de> for AllocationStrategy
impl<'de> Deserialize<'de> for AllocationStrategy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AllocationStrategy
impl PartialEq for AllocationStrategy
Source§impl Serialize for AllocationStrategy
impl Serialize for AllocationStrategy
impl Copy for AllocationStrategy
impl Eq for AllocationStrategy
impl StructuralPartialEq for AllocationStrategy
Auto Trait Implementations§
impl Freeze for AllocationStrategy
impl RefUnwindSafe for AllocationStrategy
impl Send for AllocationStrategy
impl Sync for AllocationStrategy
impl Unpin for AllocationStrategy
impl UnwindSafe for AllocationStrategy
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