#[repr(C)]pub struct mlx_stream_thread_local_ {
pub ctx: *mut c_void,
}Expand description
A per-thread stream object.
The same thread-local stream can be used from any number of threads; the stream’s GPU command encoder is registered once per thread.
Fields§
§ctx: *mut c_voidTrait Implementations§
Source§impl Clone for mlx_stream_thread_local_
impl Clone for mlx_stream_thread_local_
Source§fn clone(&self) -> mlx_stream_thread_local_
fn clone(&self) -> mlx_stream_thread_local_
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for mlx_stream_thread_local_
Auto Trait Implementations§
impl !Send for mlx_stream_thread_local_
impl !Sync for mlx_stream_thread_local_
impl Freeze for mlx_stream_thread_local_
impl RefUnwindSafe for mlx_stream_thread_local_
impl Unpin for mlx_stream_thread_local_
impl UnsafeUnpin for mlx_stream_thread_local_
impl UnwindSafe for mlx_stream_thread_local_
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