Skip to main content

SizedContainer

Trait SizedContainer 

Source
pub trait SizedContainer<I: CubePrimitive>: CubeType<ExpandType: SizedContainerExpand<I>> {
    // Required method
    fn len(&self) -> I;

    // Provided method
    fn __expand_len(
        scope: &Scope,
        this: &<Self as CubeType>::ExpandType,
    ) -> <I as CubeType>::ExpandType { ... }
}

Required Methods§

Source

fn len(&self) -> I

Return the length of the container.

Provided Methods§

Source

fn __expand_len( scope: &Scope, this: &<Self as CubeType>::ExpandType, ) -> <I 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> SizedContainer<usize> for [E]

Source§

fn len(&self) -> usize

Implementors§