pub enum AtomicOrdering {
Relaxed = 0,
Release = 1,
Acquire = 2,
AcqRel = 3,
SeqCst = 4,
}🔬This is a nightly-only experimental API. (
core_intrinsics)Expand description
A type for atomic ordering parameters for intrinsics. This is a separate type from
atomic::Ordering so that we can make it ConstParamTy and fix the values used here without a
risk of leaking that to stable code.
Variants§
Relaxed = 0
🔬This is a nightly-only experimental API. (
core_intrinsics)Release = 1
🔬This is a nightly-only experimental API. (
core_intrinsics)Acquire = 2
🔬This is a nightly-only experimental API. (
core_intrinsics)AcqRel = 3
🔬This is a nightly-only experimental API. (
core_intrinsics)SeqCst = 4
🔬This is a nightly-only experimental API. (
core_intrinsics)Trait Implementations§
Source§impl Debug for AtomicOrdering
impl Debug for AtomicOrdering
Source§impl PartialEq for AtomicOrdering
impl PartialEq for AtomicOrdering
impl ConstParamTy_ for AtomicOrdering
impl Eq for AtomicOrdering
impl StructuralPartialEq for AtomicOrdering
Auto Trait Implementations§
impl Freeze for AtomicOrdering
impl RefUnwindSafe for AtomicOrdering
impl Send for AtomicOrdering
impl Sync for AtomicOrdering
impl Unpin for AtomicOrdering
impl UnwindSafe for AtomicOrdering
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
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
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<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