rendy_factory

Trait DevicesConfigure

Source
pub trait DevicesConfigure {
    // Required method
    fn pick<B>(&self, adapters: &[Adapter<B>]) -> usize
       where B: Backend;
}
Expand description

Devices configuration. Picks physical device to use.

Required Methods§

Source

fn pick<B>(&self, adapters: &[Adapter<B>]) -> usize
where B: Backend,

Pick adapter from the slice.

§Panics

This function may panic if empty slice is provided.

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.

Implementors§