pub struct BestFitStrategy;Expand description
Best-fit allocation strategy
Trait Implementations§
Source§impl AllocationStrategy for BestFitStrategy
impl AllocationStrategy for BestFitStrategy
Source§fn select_device(
&self,
size: usize,
requirements: &AllocationRequirements,
available_devices: &[Device],
memory_info: &HashMap<Device, MemoryInfo>,
) -> Option<Device>
fn select_device( &self, size: usize, requirements: &AllocationRequirements, available_devices: &[Device], memory_info: &HashMap<Device, MemoryInfo>, ) -> Option<Device>
Select best device for allocation
Auto Trait Implementations§
impl Freeze for BestFitStrategy
impl RefUnwindSafe for BestFitStrategy
impl Send for BestFitStrategy
impl Sync for BestFitStrategy
impl Unpin for BestFitStrategy
impl UnsafeUnpin for BestFitStrategy
impl UnwindSafe for BestFitStrategy
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