Trait GraphicsApi
pub trait GraphicsApi:
Send
+ Sync
+ Debug
+ Default
+ Clone
+ 'static {
// Required method
fn backend() -> Backend;
}
Expand description
The basic trait to specify which graphics API to use as Backend.
Options are:
Required Methods§
fn backend() -> Backend
fn backend() -> Backend
The wgpu backend.
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.