Trait orx_split_vec::IntoConcurrentPinnedVec

source ·
pub trait IntoConcurrentPinnedVec<T>: PinnedVec<T> {
    type ConPinnedVec: ConcurrentPinnedVec<T, P = Self>;

    // Required methods
    fn into_concurrent(self) -> Self::ConPinnedVec;
    fn into_concurrent_filled_with<F>(self, fill_with: F) -> Self::ConPinnedVec
       where F: Fn() -> T;
}
Expand description

A pinned vector which can be wrapped into a concurrent pinned vector.

Required Associated Types§

source

type ConPinnedVec: ConcurrentPinnedVec<T, P = Self>

Type of the concurrent pinned vector wrapper.

Required Methods§

source

fn into_concurrent(self) -> Self::ConPinnedVec

Converts the pinned vector into its concurrent wrapper.

source

fn into_concurrent_filled_with<F>(self, fill_with: F) -> Self::ConPinnedVec
where F: Fn() -> T,

Converts the pinned vector into its concurrent wrapper. During conversion:

  • length of the vector is increased to its capacity;
  • the elements in the range len..capacity are filled with the values obtained by repeatedly calling the function fill_with.

Object Safety§

This trait is not object safe.

Implementors§