pub struct MlxMapStringToArray(/* private fields */);Expand description
Owned MLX map from strings to arrays, released exactly once.
Implementations§
Source§impl MlxMapStringToArray
impl MlxMapStringToArray
Sourcepub fn set(&mut self, source: &Self) -> Result<(), MlxCError>
pub fn set(&mut self, source: &Self) -> Result<(), MlxCError>
Copies the source map handle into this handle.
Sourcepub fn insert(&mut self, key: &str, value: &MlxArray) -> Result<(), MlxCError>
pub fn insert(&mut self, key: &str, value: &MlxArray) -> Result<(), MlxCError>
Inserts one copied array under the key.
Sourcepub fn value_at(&self, key: &str) -> Result<Option<MlxArray>, MlxCError>
pub fn value_at(&self, key: &str) -> Result<Option<MlxArray>, MlxCError>
Copies the array stored under the key, if any.
Sourcepub fn iter(&self) -> Result<MlxMapStringToArrayIterator, MlxCError>
pub fn iter(&self) -> Result<MlxMapStringToArrayIterator, MlxCError>
An owned iterator over the map’s entries.
Trait Implementations§
Source§impl Debug for MlxMapStringToArray
impl Debug for MlxMapStringToArray
Source§impl Drop for MlxMapStringToArray
impl Drop for MlxMapStringToArray
Auto Trait Implementations§
impl !Send for MlxMapStringToArray
impl !Sync for MlxMapStringToArray
impl Freeze for MlxMapStringToArray
impl RefUnwindSafe for MlxMapStringToArray
impl Unpin for MlxMapStringToArray
impl UnsafeUnpin for MlxMapStringToArray
impl UnwindSafe for MlxMapStringToArray
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