use o3::buffer::{self, pool};
use crate::memory;
pub trait Pool: Sized {
type Layout: memory::raw::Layout;
type Buffer: crate::Buffer;
type Context: memory::Context<Layout = Self::Layout> + buffer::raw::Fixed<Self::Buffer>;
fn try_new(layout: Self::Layout) -> Result<(Self, Self::Context), pool::CreateError>;
fn take(&self) -> Option<Self::Buffer>;
}