pub trait CuPool<T: ArrayLike>: PoolMonitor {
// Required methods
fn acquire(&self) -> Option<CuHandle<T>>;
fn copy_from<O>(&self, from: &mut CuHandle<O>) -> CuHandle<T>
where O: ArrayLike<Element = T::Element>;
}
Expand description
A CuPool is a pool of buffers that can be shared between different parts of the code. Handles can be stored locally in the tasks and shared between them.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.