#[repr(C)]pub struct mlx_device_info_ {
pub ctx: *mut c_void,
}Expand description
A MLX device info object. Contains key-value pairs with device properties. Keys vary by backend but common keys include:
- device_name (string): Device name
- architecture (string): Architecture identifier Additional keys may be present depending on the backend.
Fields§
§ctx: *mut c_voidTrait Implementations§
Source§impl Clone for mlx_device_info_
impl Clone for mlx_device_info_
Source§fn clone(&self) -> mlx_device_info_
fn clone(&self) -> mlx_device_info_
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for mlx_device_info_
Auto Trait Implementations§
impl !Send for mlx_device_info_
impl !Sync for mlx_device_info_
impl Freeze for mlx_device_info_
impl RefUnwindSafe for mlx_device_info_
impl Unpin for mlx_device_info_
impl UnsafeUnpin for mlx_device_info_
impl UnwindSafe for mlx_device_info_
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