pub trait BufferRetentionPolicy<const ALIGNMENT: usize>: Copy {
    // Required method
    fn should_retain(&self, buffer: &UniqueAlignedBuffer<ALIGNMENT>) -> bool;
}
Expand description

A policy for retaining buffers in the pool.

Required Methods§

source

fn should_retain(&self, buffer: &UniqueAlignedBuffer<ALIGNMENT>) -> bool

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<const ALIGNMENT: usize> BufferRetentionPolicy<ALIGNMENT> for RetainAllRetentionPolicy

source§

impl<const SIZE: usize, const ALIGNMENT: usize> BufferRetentionPolicy<ALIGNMENT> for ConstMaxSizeRetentionPolicy<SIZE>