Trait coaster::device::IDevice [] [src]

pub trait IDevice where
    Self: Any + Clone + Eq + Any + MemorySync
{ type H: IHardware; type M: IMemory + Any; fn id(&self) -> &isize; fn hardwares(&self) -> &Vec<Self::H>; fn alloc_memory(&self, size: usize) -> Result<Self::M, Error>; }

Specifies Hardware behavior across frameworks.

Associated Types

The Hardware representation for this Device.

The Memory representation for this Device.

Required Methods

Returns the unique identifier of the Device.

Returns the hardwares, which define the Device.

Allocate memory on the Device.

Implementors