pub struct MlxVectorString(/* private fields */);Expand description
Owned MLX vector of strings; elements are borrowed from the vector for each read and copied into Rust memory.
Implementations§
Source§impl MlxVectorString
impl MlxVectorString
Sourcepub fn from_strings(values: &[&str]) -> Result<Self, MlxCError>
pub fn from_strings(values: &[&str]) -> Result<Self, MlxCError>
Creates an owned vector holding copies of the provided strings.
Sourcepub fn set(&mut self, source: &Self) -> Result<(), MlxCError>
pub fn set(&mut self, source: &Self) -> Result<(), MlxCError>
Copies the source vector handle into this handle.
Sourcepub fn set_strings(&mut self, values: &[&str]) -> Result<(), MlxCError>
pub fn set_strings(&mut self, values: &[&str]) -> Result<(), MlxCError>
Replaces the vector contents with copies of the provided strings.
Trait Implementations§
Source§impl Debug for MlxVectorString
impl Debug for MlxVectorString
Source§impl Drop for MlxVectorString
impl Drop for MlxVectorString
Auto Trait Implementations§
impl !Send for MlxVectorString
impl !Sync for MlxVectorString
impl Freeze for MlxVectorString
impl RefUnwindSafe for MlxVectorString
impl Unpin for MlxVectorString
impl UnsafeUnpin for MlxVectorString
impl UnwindSafe for MlxVectorString
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