Struct collenchyma::backend::Backend [] [src]

pub struct Backend<F: IFramework> {
    // some fields omitted
}

Defines the main and highest struct of Collenchyma.

Methods

impl<F: IFramework + Clone> Backend<F>

Defines the functionality of the Backend.

fn new(config: BackendConfig<F>) -> Result<Backend<F>, Error>

Initialize a new native Backend from a BackendConfig.

fn hardwares(&self) -> &[F::H]

Returns the available hardware.

fn framework(&self) -> &Box<F>

Returns the backend framework.

fn device(&self) -> &DeviceType

Returns the backend device.

Trait Implementations

impl IBackend for Backend<Native>

type F = Native

fn device(&self) -> &DeviceType

fn default() -> Result<Backend<Self::F>, Error> where Self: Sized

fn synchronize(&self) -> Result<(), Error>

Derived Implementations

impl<F: Clone + IFramework> Clone for Backend<F>

fn clone(&self) -> Backend<F>

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

impl<F: Debug + IFramework> Debug for Backend<F>

fn fmt(&self, __arg_0: &mut Formatter) -> Result