Trait coaster::framework::IFramework[][src]

pub trait IFramework {
    type H: IHardware;
    type D: IDevice + Clone;
    type B: IBinary + Clone;
    fn ID() -> &'static str;
fn new() -> Self
    where
        Self: Sized
;
fn load_hardwares() -> Result<Vec<Self::H>, Error>;
fn hardwares(&self) -> &[Self::H]
Notable traits for &'_ mut [u8]
impl<'_> Write for &'_ mut [u8]impl<'_> Read for &'_ [u8]
;
fn binary(&self) -> &Self::B;
fn new_device(&self, _: &[Self::H]) -> Result<Self::D, Error>; }
Expand description

Defines a Framework.

Associated Types

The Hardware representation for this Framework.

The Device representation for this Framework.

The Binary representation for this Framework.

Required methods

Defines the Framework by a Name.

For convention, let the ID be uppercase.
EXAMPLE: OPENCL

Initializes a new Framework.

Loads all the available hardwares

Initializes all the available hardwares.

Returns the cached and available hardwares.

Returns the initialized binary.

Initializes a new Device from the provided hardwares.

Implementors