pub trait List<T: CubeType>: CubeType<ExpandType: ListExpand<T>> {
// Required method
fn __expand_read(
scope: &mut Scope,
this: Self::ExpandType,
index: ExpandElementTyped<u32>,
) -> T::ExpandType;
// Provided method
fn read(&self, index: u32) -> T { ... }
}
Expand description
Type from which we can read values in cube functions. For a mutable version, see ListMut.
Required Methods§
fn __expand_read( scope: &mut Scope, this: Self::ExpandType, index: ExpandElementTyped<u32>, ) -> T::ExpandType
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.