Skip to main content

SliceAtomicVectorExt

Trait SliceAtomicVectorExt 

Source
pub trait SliceAtomicVectorExt<E: Scalar> {
    // Provided methods
    fn with_vector_size<N: Size>(&self) -> &[Atomic<Vector<E, N>>] { ... }
    fn __expand_with_vector_size<'infer, N: Size>(
        scope: &Scope,
        this: &'infer SliceExpand<Atomic<E>>,
    ) -> &'infer SliceExpand<Atomic<Vector<E, N>>> { ... }
}
Expand description

A slice of atomic scalars viewed as atomic vectors: what a vector atomic operation, such as an add of a whole vector at once, takes. The slice’s offset and length must be multiples of the vector size.

Provided Methods§

Source

fn with_vector_size<N: Size>(&self) -> &[Atomic<Vector<E, N>>]

Source

fn __expand_with_vector_size<'infer, N: Size>( scope: &Scope, this: &'infer SliceExpand<Atomic<E>>, ) -> &'infer SliceExpand<Atomic<Vector<E, N>>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<E: Scalar> SliceAtomicVectorExt<E> for [Atomic<E>]

Implementors§