SizedContainer

Trait SizedContainer 

Source
pub trait SizedContainer: Sized + CubeIndex<Output = Self::Item>
where Self::Idx: CubePrimitive,
{ type Item: CubePrimitive; // Provided method fn len(val: &ExpandElement, scope: &mut Scope) -> ExpandElement { ... } }

Required Associated Types§

Provided Methods§

Source

fn len(val: &ExpandElement, scope: &mut Scope) -> ExpandElement

Return the length of the container.

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.

Implementors§

Source§

impl<E> SizedContainer for Slice<E>
where E: CubePrimitive,

Source§

type Item = E

Source§

impl<T> SizedContainer for Array<T>
where T: CubePrimitive,

Source§

type Item = T

Source§

impl<T> SizedContainer for Tensor<T>
where T: CubePrimitive,

Source§

type Item = T