pub trait SizedContainer: CubeIndex<ExpandElementTyped<u32>, Output = Self::Item> + CubeType {
type Item: CubeType<ExpandType = ExpandElementTyped<Self::Item>>;
// Provided method
fn len(val: &ExpandElement, context: &mut CubeContext) -> ExpandElement { ... }
}
Required Associated Types§
type Item: CubeType<ExpandType = ExpandElementTyped<Self::Item>>
Provided Methods§
Sourcefn len(val: &ExpandElement, context: &mut CubeContext) -> ExpandElement
fn len(val: &ExpandElement, context: &mut CubeContext) -> 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.