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