Enum scsys_core::sync::atomic::AtomicOrder
source · pub enum AtomicOrder {
Acquire,
AcqRel,
Relaxed,
Release,
SeqCst,
}
Variants§
Implementations§
source§impl AtomicOrder
impl AtomicOrder
sourcepub const fn is_acquire(&self) -> bool
pub const fn is_acquire(&self) -> bool
Returns true if the enum is AtomicOrder::Acquire otherwise false
sourcepub const fn is_acq_rel(&self) -> bool
pub const fn is_acq_rel(&self) -> bool
Returns true if the enum is AtomicOrder::AcqRel otherwise false
sourcepub const fn is_relaxed(&self) -> bool
pub const fn is_relaxed(&self) -> bool
Returns true if the enum is AtomicOrder::Relaxed otherwise false
sourcepub const fn is_release(&self) -> bool
pub const fn is_release(&self) -> bool
Returns true if the enum is AtomicOrder::Release otherwise false
sourcepub const fn is_seq_cst(&self) -> bool
pub const fn is_seq_cst(&self) -> bool
Returns true if the enum is AtomicOrder::SeqCst otherwise false
Trait Implementations§
source§impl AsRef<str> for AtomicOrder
impl AsRef<str> for AtomicOrder
source§impl Clone for AtomicOrder
impl Clone for AtomicOrder
source§fn clone(&self) -> AtomicOrder
fn clone(&self) -> AtomicOrder
Returns a copy 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 Debug for AtomicOrder
impl Debug for AtomicOrder
source§impl Default for AtomicOrder
impl Default for AtomicOrder
source§fn default() -> AtomicOrder
fn default() -> AtomicOrder
Returns the “default value” for a type. Read more
source§impl Display for AtomicOrder
impl Display for AtomicOrder
source§impl From<AtomicOrder> for Ordering
impl From<AtomicOrder> for Ordering
source§fn from(order: AtomicOrder) -> Self
fn from(order: AtomicOrder) -> Self
Converts to this type from the input type.
source§impl From<Ordering> for AtomicOrder
impl From<Ordering> for AtomicOrder
source§impl FromStr for AtomicOrder
impl FromStr for AtomicOrder
source§impl Hash for AtomicOrder
impl Hash for AtomicOrder
source§impl IntoEnumIterator for AtomicOrder
impl IntoEnumIterator for AtomicOrder
source§impl Ord for AtomicOrder
impl Ord for AtomicOrder
source§fn cmp(&self, other: &AtomicOrder) -> Ordering
fn cmp(&self, other: &AtomicOrder) -> Ordering
1.21.0 · 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 for AtomicOrder
impl PartialEq for AtomicOrder
source§impl PartialOrd for AtomicOrder
impl PartialOrd for AtomicOrder
source§impl TryFrom<&str> for AtomicOrder
impl TryFrom<&str> for AtomicOrder
source§impl VariantNames for AtomicOrder
impl VariantNames for AtomicOrder
impl Copy for AtomicOrder
impl Eq for AtomicOrder
impl StructuralPartialEq for AtomicOrder
Auto Trait Implementations§
impl Freeze for AtomicOrder
impl RefUnwindSafe for AtomicOrder
impl Send for AtomicOrder
impl Sync for AtomicOrder
impl Unpin for AtomicOrder
impl UnwindSafe for AtomicOrder
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)