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