Enum AtomicOrdering

pub enum AtomicOrdering

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
Release = 1
Acquire = 2
AcqRel = 3
SeqCst = 4

Trait Implementations

impl ConstParamTy_ for AtomicOrdering

impl Debug for AtomicOrdering

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Eq for AtomicOrdering

fn assert_fields_are_eq(&self)

impl PartialEq for AtomicOrdering

fn eq(&self, other: &AtomicOrdering) -> bool

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 UnsafeUnpin for AtomicOrdering

impl UnwindSafe for AtomicOrdering

Blanket Implementations

impl<T> Any for AtomicOrdering where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for AtomicOrdering where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for AtomicOrdering where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> From<T> for AtomicOrdering

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> SizeHint for AtomicOrdering where T: ?Sized,

fn lower_bound(&self) -> usize
fn upper_bound(&self) -> Option<usize>

impl<T> SizedTypeProperties for AtomicOrdering

impl<T, U> Into<U> for AtomicOrdering where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for AtomicOrdering where U: Into<T>,

type Error = Infallible;
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto<U> for AtomicOrdering where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>