Expand description
Proc-macros for baracuda-types: #[derive(DeviceRepr)].
#[derive(KernelArg)] is deliberately not provided: KernelArg is
already implemented for &T where T: DeviceRepr via a blanket impl, so
deriving DeviceRepr is sufficient for a type to be usable as a
kernel argument via &my_value.
Derive Macros§
- Device
Repr #[derive(DeviceRepr)]— implementbaracuda_types::DeviceReprfor a#[repr(C)]or#[repr(transparent)]struct whose fields are allDeviceRepr. Enums and unions are rejected (use a#[repr(C)]struct).