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.