pub enum AtomicKind<D: Dialect> {
I32,
I64,
U32,
U64,
F16,
F16x2,
BF16,
BF16x2,
F32,
F64,
_Dialect(PhantomData<D>),
}Variants§
I32
I64
U32
U64
F16
F16x2
BF16
BF16x2
F32
F64
_Dialect(PhantomData<D>)
Required to construct the inner Elem of the atomic value
Implementations§
Trait Implementations§
Source§impl<D: Clone + Dialect> Clone for AtomicKind<D>
impl<D: Clone + Dialect> Clone for AtomicKind<D>
Source§fn clone(&self) -> AtomicKind<D>
fn clone(&self) -> AtomicKind<D>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<D: Dialect> Display for AtomicKind<D>
impl<D: Dialect> Display for AtomicKind<D>
impl<D: Copy + Dialect> Copy for AtomicKind<D>
impl<D: Eq + Dialect> Eq for AtomicKind<D>
impl<D: Dialect> StructuralPartialEq for AtomicKind<D>
Auto Trait Implementations§
impl<D> Freeze for AtomicKind<D>
impl<D> RefUnwindSafe for AtomicKind<D>where
D: RefUnwindSafe,
impl<D> Send for AtomicKind<D>
impl<D> Sync for AtomicKind<D>
impl<D> Unpin for AtomicKind<D>where
D: Unpin,
impl<D> UnsafeUnpin for AtomicKind<D>
impl<D> UnwindSafe for AtomicKind<D>where
D: UnwindSafe,
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
Source§impl<C> CloneExpand for Cwhere
C: Clone,
impl<C> CloneExpand for Cwhere
C: Clone,
fn __expand_clone_method(&self, _scope: &mut Scope) -> C
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> CompilationArg for T
impl<T> CompilationArg for T
Source§fn dynamic_cast<Arg>(&self) -> Argwhere
Arg: CompilationArg,
fn dynamic_cast<Arg>(&self) -> Argwhere
Arg: CompilationArg,
Compilation args should be the same even with different element types. However, it isn’t
possible to enforce it with the type system. So, we make the compilation args serializable
and dynamically cast them. Read more
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more