Trait flex_alloc::vec::config::VecConfigAlloc

source ·
pub trait VecConfigAlloc<T>: VecConfig {
    type Alloc: RawAlloc;

    // Required method
    fn allocator(buf: &Self::Buffer<T>) -> &Self::Alloc;
}

Required Associated Types§

Required Methods§

source

fn allocator(buf: &Self::Buffer<T>) -> &Self::Alloc

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T, C: VecConfig> VecConfigAlloc<T> for C
where C::Buffer<T>: AllocHandle<Meta = VecData<T, Self::Index>>,

source§

type Alloc = <<C as VecConfig>::Buffer<T> as AllocHandle>::Alloc