flex_alloc/storage/
mod.rsuse const_default::ConstDefault;
mod alloc;
mod array;
pub(crate) mod boxed;
mod bytes;
mod inline;
pub(crate) mod insert;
mod spill;
pub(crate) mod utils;
pub use self::{
alloc::{BufferHeader, FatBuffer, ThinBuffer},
array::ArrayStorage,
bytes::ByteStorage,
inline::{Inline, InlineBuffer},
spill::SpillStorage,
};
pub const fn array_storage<T, const N: usize>() -> ArrayStorage<T, N> {
ArrayStorage::DEFAULT
}
pub const fn byte_storage<const N: usize>() -> ByteStorage<u8, N> {
ByteStorage::DEFAULT
}
pub const fn aligned_byte_storage<T, const N: usize>() -> ByteStorage<T, N> {
ByteStorage::DEFAULT
}
pub trait RawBuffer: Sized {
type RawData: ?Sized;
fn data_ptr(&self) -> *const Self::RawData;
fn data_ptr_mut(&mut self) -> *mut Self::RawData;
}