Trait flex_alloc::vec::config::VecConfigAllocParts
source · pub trait VecConfigAllocParts<T>: VecConfigAlloc<T> {
// Required methods
fn vec_from_parts(
data: NonNull<T>,
length: Self::Index,
capacity: Self::Index,
alloc: Self::Alloc,
) -> Self::Buffer<T>;
fn vec_into_parts(
buffer: Self::Buffer<T>,
) -> (NonNull<T>, Self::Index, Self::Index, Self::Alloc);
}Required Methods§
fn vec_from_parts( data: NonNull<T>, length: Self::Index, capacity: Self::Index, alloc: Self::Alloc, ) -> Self::Buffer<T>
fn vec_into_parts( buffer: Self::Buffer<T>, ) -> (NonNull<T>, Self::Index, Self::Index, Self::Alloc)
Object Safety§
This trait is not object safe.