Type Alias surfman::platform::unix::default::device::Adapter

source ·
pub type Adapter = Adapter<Device<Device, Device>, Device>;
Expand description

Represents a hardware display adapter that can be used for rendering (including the CPU).

Adapters can be sent between threads. To render with an adapter, open a thread-local Device.

Aliased Type§

enum Adapter {
    Default(Adapter<Device, Device>),
    Alternate(Adapter),
}

Variants§

§

Default(Adapter<Device, Device>)

The default adapter type.

§

Alternate(Adapter)

The alternate adapter type.

Trait Implementations§

source§

impl<Def, Alt> Clone for Adapter<Def, Alt>where Def: DeviceInterface, Alt: DeviceInterface, <Def::Connection as ConnectionInterface>::Adapter: Clone, <Alt::Connection as ConnectionInterface>::Adapter: Clone,

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more