Skip to main content

GpuViewExt

Trait GpuViewExt 

Source
pub trait GpuViewExt {
    // Required method
    fn renderer<R: GpuRenderer>(
        self,
        make: impl Fn() -> R + Send + Sync + 'static,
    ) -> Self;
}
Expand description

A GPU view’s renderer, given by a Rust element.

Required Methods§

Source

fn renderer<R: GpuRenderer>( self, make: impl Fn() -> R + Send + Sync + 'static, ) -> Self

Draws the view with the renderers make makes (one each time the view is mounted).

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 GpuViewExt for GpuView

Source§

fn renderer<R: GpuRenderer>( self, make: impl Fn() -> R + Send + Sync + 'static, ) -> Self

Implementors§