pub struct MlxVectorStream(/* private fields */);Expand description
Owned MLX vector of streams; elements are copied out as owned stream handles.
Implementations§
Source§impl MlxVectorStream
impl MlxVectorStream
Sourcepub fn from_streams(streams: &[&MlxStream]) -> Result<Self, MlxCError>
pub fn from_streams(streams: &[&MlxStream]) -> Result<Self, MlxCError>
Creates an owned vector holding copies of the provided streams.
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.
Trait Implementations§
Source§impl Debug for MlxVectorStream
impl Debug for MlxVectorStream
Source§impl Drop for MlxVectorStream
impl Drop for MlxVectorStream
Auto Trait Implementations§
impl !Send for MlxVectorStream
impl !Sync for MlxVectorStream
impl Freeze for MlxVectorStream
impl RefUnwindSafe for MlxVectorStream
impl Unpin for MlxVectorStream
impl UnsafeUnpin for MlxVectorStream
impl UnwindSafe for MlxVectorStream
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