Struct collenchyma::frameworks::native::device::Cpu
[−]
[src]
pub struct Cpu { /* fields omitted */ }
Defines the host CPU Hardware.
Can later be transformed into a Collenchyma hardware.
Methods
impl Cpu
[src]
Trait Implementations
impl Debug for Cpu
[src]
impl Clone for Cpu
[src]
fn clone(&self) -> Cpu
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl IDevice for Cpu
[src]
type H = Hardware
The Hardware representation for this Device.
type M = FlatBox
The Memory representation for this Device.
fn id(&self) -> &isize
Returns the unique identifier of the Device.
fn hardwares(&self) -> &Vec<Hardware>
Returns the hardwares, which define the Device.
fn alloc_memory(&self, size: usize) -> Result<FlatBox, DeviceError>
Allocate memory on the Device.
fn sync_in(
&self,
source: &DeviceType,
source_data: &MemoryType,
dest_data: &mut FlatBox
) -> Result<(), DeviceError>
&self,
source: &DeviceType,
source_data: &MemoryType,
dest_data: &mut FlatBox
) -> Result<(), DeviceError>
Synchronize memory from source_data
to the memory at dest_data
. Read more
impl PartialEq for Cpu
[src]
fn eq(&self, _: &Self) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.