#[repr(C)]pub struct mlx_optional_dtype_ {
pub value: mlx_dtype,
pub has_value: bool,
}Expand description
A dtype optional.
Fields§
§value: mlx_dtype§has_value: boolTrait Implementations§
Source§impl Clone for mlx_optional_dtype_
impl Clone for mlx_optional_dtype_
Source§fn clone(&self) -> mlx_optional_dtype_
fn clone(&self) -> mlx_optional_dtype_
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_optional_dtype_
Auto Trait Implementations§
impl Freeze for mlx_optional_dtype_
impl RefUnwindSafe for mlx_optional_dtype_
impl Send for mlx_optional_dtype_
impl Sync for mlx_optional_dtype_
impl Unpin for mlx_optional_dtype_
impl UnsafeUnpin for mlx_optional_dtype_
impl UnwindSafe for mlx_optional_dtype_
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