Skip to main content

List

Trait List 

Source
pub trait List<T: CubePrimitive>:
    SliceOperator<T>
    + CubeIndex<usize, Output = T>
    + CubeIndexMut<usize, Output = T>
    + Vectorized
    + CubeType<ExpandType: ListExpand<T>> {
    // Provided methods
    fn len(&self) -> usize { ... }
    fn __expand_len(
        scope: &Scope,
        this: &<Self as CubeType>::ExpandType,
    ) -> <usize as CubeType>::ExpandType { ... }
}
Expand description

Type from which we can read/to which we can write values in cube functions.

Provided Methods§

Source

fn len(&self) -> usize

Source

fn __expand_len( scope: &Scope, this: &<Self as CubeType>::ExpandType, ) -> <usize as CubeType>::ExpandType

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: CubePrimitive> List<E> for [E]

Implementors§