pub trait WriteMemory<T: Default + Debug>: AsMutVoidPtr {
// Required methods
fn memcpy(&mut self, p: *const T, len: usize) -> Result<usize, Error>;
fn memcpy_repeat(
&mut self,
p: *const T,
len: usize,
count: usize,
) -> Result<usize, Error>;
}
Expand description
Trait to implement cuda synchronous memory write operations