pub enum AtomicUsage {
LoadStore,
Add,
MinMax,
}Expand description
Atomic operations allowed for this type.
Variants§
Implementations§
Source§impl AtomicUsage
impl AtomicUsage
pub fn all() -> EnumSet<AtomicUsage>
Trait Implementations§
Source§impl<O> BitAnd<O> for AtomicUsage
impl<O> BitAnd<O> for AtomicUsage
Source§impl<O> BitOr<O> for AtomicUsage
impl<O> BitOr<O> for AtomicUsage
Source§impl<O> BitXor<O> for AtomicUsage
impl<O> BitXor<O> for AtomicUsage
Source§impl Clone for AtomicUsage
impl Clone for AtomicUsage
Source§fn clone(&self) -> AtomicUsage
fn clone(&self) -> AtomicUsage
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 moreSource§impl Debug for AtomicUsage
impl Debug for AtomicUsage
Source§impl Hash for AtomicUsage
impl Hash for AtomicUsage
Source§impl Not for AtomicUsage
impl Not for AtomicUsage
Source§impl Ord for AtomicUsage
impl Ord for AtomicUsage
Source§fn cmp(&self, other: &AtomicUsage) -> Ordering
fn cmp(&self, other: &AtomicUsage) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq<EnumSet<AtomicUsage>> for AtomicUsage
impl PartialEq<EnumSet<AtomicUsage>> for AtomicUsage
Source§impl PartialEq for AtomicUsage
impl PartialEq for AtomicUsage
Source§fn eq(&self, other: &AtomicUsage) -> bool
fn eq(&self, other: &AtomicUsage) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for AtomicUsage
impl PartialOrd for AtomicUsage
Source§impl<O> Sub<O> for AtomicUsage
impl<O> Sub<O> for AtomicUsage
impl Copy for AtomicUsage
impl EnumSetType for AtomicUsage
impl Eq for AtomicUsage
Auto Trait Implementations§
impl Freeze for AtomicUsage
impl RefUnwindSafe for AtomicUsage
impl Send for AtomicUsage
impl Sync for AtomicUsage
impl Unpin for AtomicUsage
impl UnsafeUnpin for AtomicUsage
impl UnwindSafe for AtomicUsage
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.