surfman::chains

Trait SwapChainsAPI

Source
pub trait SwapChainsAPI<SwapChainID>:
    'static
    + Clone
    + Send {
    type Surface;
    type SwapChain: SwapChainAPI<Surface = Self::Surface>;

    // Required method
    fn get(&self, id: SwapChainID) -> Option<Self::SwapChain>;
}
Expand description

The consumer’s view of a collection of swap chains

Required Associated Types§

Required Methods§

Source

fn get(&self, id: SwapChainID) -> Option<Self::SwapChain>

Get a swap chain

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§

Source§

impl<SwapChainID, Device> SwapChainsAPI<SwapChainID> for SwapChains<SwapChainID, Device>
where SwapChainID: 'static + Clone + Eq + Hash + Debug + Sync + Send, Device: 'static + DeviceAPI, Device::Surface: Send,

Source§

type Surface = <Device as Device>::Surface

Source§

type SwapChain = SwapChain<Device>