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§
sourcetype ConPinnedVec: ConcurrentPinnedVec<T, P = Self>
type ConPinnedVec: ConcurrentPinnedVec<T, P = Self>
Type of the concurrent pinned vector wrapper.
Required Methods§
sourcefn into_concurrent(self) -> Self::ConPinnedVec
fn into_concurrent(self) -> Self::ConPinnedVec
Converts the pinned vector into its concurrent wrapper.
sourcefn into_concurrent_filled_with<F>(self, fill_with: F) -> Self::ConPinnedVecwhere
F: Fn() -> T,
fn into_concurrent_filled_with<F>(self, fill_with: F) -> Self::ConPinnedVecwhere
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 functionfill_with
.
Object Safety§
This trait is not object safe.