pub struct MlxDeviceInfo(/* private fields */);Expand description
Owned MLX device information table released exactly once.
Implementations§
Source§impl MlxDeviceInfo
impl MlxDeviceInfo
Sourcepub fn has_key(&self, key: &str) -> Result<bool, MlxCError>
pub fn has_key(&self, key: &str) -> Result<bool, MlxCError>
Whether the information table contains the key.
Sourcepub fn is_string(&self, key: &str) -> Result<bool, MlxCError>
pub fn is_string(&self, key: &str) -> Result<bool, MlxCError>
Whether the value stored for the key is a string.
Sourcepub fn string_value(&self, key: &str) -> Result<String, MlxCError>
pub fn string_value(&self, key: &str) -> Result<String, MlxCError>
Copies the string value stored for the key.
Sourcepub fn size_value(&self, key: &str) -> Result<usize, MlxCError>
pub fn size_value(&self, key: &str) -> Result<usize, MlxCError>
Copies the size value stored for the key.
Sourcepub fn keys(&self) -> Result<MlxVectorString, MlxCError>
pub fn keys(&self) -> Result<MlxVectorString, MlxCError>
Every key present in the information table.
Trait Implementations§
Source§impl Debug for MlxDeviceInfo
impl Debug for MlxDeviceInfo
Source§impl Drop for MlxDeviceInfo
impl Drop for MlxDeviceInfo
Auto Trait Implementations§
impl !Send for MlxDeviceInfo
impl !Sync for MlxDeviceInfo
impl Freeze for MlxDeviceInfo
impl RefUnwindSafe for MlxDeviceInfo
impl Unpin for MlxDeviceInfo
impl UnsafeUnpin for MlxDeviceInfo
impl UnwindSafe for MlxDeviceInfo
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