pub enum AllocationAlgorithm {
Tlsf,
Linear,
}Expand description
Placement metadata for custom pools and host-only virtual blocks.
Linear placement appends after the current tail; middle holes are not reused. Releasing all regions restarts the range. Last-in-first-out release rewinds a stack; a single-block pool also supports ring and double-stack lifetimes. Strategy flags affect TLSF only. These are placement rules, not GPU lifetime tracking or latency guarantees.
Variants§
Trait Implementations§
Source§impl Clone for AllocationAlgorithm
impl Clone for AllocationAlgorithm
impl Copy for AllocationAlgorithm
Source§impl Debug for AllocationAlgorithm
impl Debug for AllocationAlgorithm
Source§impl Default for AllocationAlgorithm
impl Default for AllocationAlgorithm
impl Eq for AllocationAlgorithm
Source§impl PartialEq for AllocationAlgorithm
impl PartialEq for AllocationAlgorithm
impl StructuralPartialEq for AllocationAlgorithm
Auto Trait Implementations§
impl Forget for AllocationAlgorithm
impl Freeze for AllocationAlgorithm
impl Move for AllocationAlgorithm
impl RefUnwindSafe for AllocationAlgorithm
impl Send for AllocationAlgorithm
impl Sync for AllocationAlgorithm
impl Unpin for AllocationAlgorithm
impl UnsafeUnpin for AllocationAlgorithm
impl UnwindSafe for AllocationAlgorithm
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