#[repr(C)]pub enum MapType {
To = 0,
From = 1,
ToFrom = 2,
Alloc = 3,
Release = 4,
Delete = 5,
}
Expand description
Map type for map clauses in target directives
Specifies how data is mapped between host and device memory.
§Examples
let mt = MapType::To;
assert_eq!(mt.to_string(), "to");
let mt = MapType::ToFrom;
assert_eq!(mt.to_string(), "tofrom");
Variants§
To = 0
Map data to device (host → device)
From = 1
Map data from device (device → host)
ToFrom = 2
Map data to and from device (bidirectional)
Alloc = 3
Allocate device memory without transfer
Release = 4
Release device memory
Delete = 5
Delete device memory
Trait Implementations§
impl Copy for MapType
impl Eq for MapType
impl StructuralPartialEq for MapType
Auto Trait Implementations§
impl Freeze for MapType
impl RefUnwindSafe for MapType
impl Send for MapType
impl Sync for MapType
impl Unpin for MapType
impl UnwindSafe for MapType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more