#[repr(C)]pub struct GPUDevices {
pub len: usize,
pub infos: *mut GPUDeviceInfo,
}Expand description
this function stores an dynamic array of GPUDeviceInfo with len , it must be freed with free_gpu_devices_infos function after usage
Fields§
§len: usizelen of the dyn array
infos: *mut GPUDeviceInfopointer to the GPUDeviceInfo array
Trait Implementations§
Source§impl Clone for GPUDevices
impl Clone for GPUDevices
Source§fn clone(&self) -> GPUDevices
fn clone(&self) -> GPUDevices
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GPUDevices
impl Debug for GPUDevices
Auto Trait Implementations§
impl Freeze for GPUDevices
impl RefUnwindSafe for GPUDevices
impl !Send for GPUDevices
impl !Sync for GPUDevices
impl Unpin for GPUDevices
impl UnwindSafe for GPUDevices
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)