pub trait AsView<E: CubePrimitive>: CubeType<ExpandType: AsViewExpand<E, SourceCoords = Self::SourceCoords>> {
type SourceCoords: Coordinates;
// Provided methods
fn view<C: Coordinates + 'static>(
&self,
layout: impl Into<VirtualLayout<C, Self::SourceCoords>>,
) -> View<E, C, ReadOnly> { ... }
fn __expand_view<C: Coordinates + 'static>(
scope: &mut Scope,
this: Self::ExpandType,
layout: VirtualLayoutExpand<C, Self::SourceCoords>,
) -> ViewExpand<E, C, ReadOnly> { ... }
}Required Associated Types§
Provided Methods§
fn view<C: Coordinates + 'static>( &self, layout: impl Into<VirtualLayout<C, Self::SourceCoords>>, ) -> View<E, C, ReadOnly>
fn __expand_view<C: Coordinates + 'static>( scope: &mut Scope, this: Self::ExpandType, layout: VirtualLayoutExpand<C, Self::SourceCoords>, ) -> ViewExpand<E, C, ReadOnly>
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.