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§

source

fn vec_from_parts( data: NonNull<T>, length: Self::Index, capacity: Self::Index, alloc: Self::Alloc, ) -> Self::Buffer<T>

source

fn vec_into_parts( buffer: Self::Buffer<T>, ) -> (NonNull<T>, Self::Index, Self::Index, Self::Alloc)

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T, C: VecConfigAlloc<T>> VecConfigAllocParts<T> for C
where C::Buffer<T>: AllocHandleParts<Alloc = Self::Alloc, Meta = VecData<T, Self::Index>>,