#[non_exhaustive]pub enum ScalarMut<'a, T> {
Host(&'a mut T),
Device(DeviceScalarMut<T>),
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Host(&'a mut T)
Device(DeviceScalarMut<T>)
Implementations§
Trait Implementations§
Source§impl<T> From<DeviceScalarMut<T>> for ScalarMut<'_, T>
impl<T> From<DeviceScalarMut<T>> for ScalarMut<'_, T>
Source§fn from(value: DeviceScalarMut<T>) -> Self
fn from(value: DeviceScalarMut<T>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a, T> !Send for ScalarMut<'a, T>
impl<'a, T> !Sync for ScalarMut<'a, T>
impl<'a, T> !UnwindSafe for ScalarMut<'a, T>
impl<'a, T> Freeze for ScalarMut<'a, T>
impl<'a, T> RefUnwindSafe for ScalarMut<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Unpin for ScalarMut<'a, T>
impl<'a, T> UnsafeUnpin for ScalarMut<'a, T>
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