pub enum AmoOrdering {
Relaxed,
Acquire,
Release,
SeqCst,
}Expand description
An atomic memory ordering for instructions from the A extension.
Variants§
Implementations§
Source§impl AmoOrdering
impl AmoOrdering
Sourcepub fn from_aq_rl(aq: bool, rl: bool) -> Self
pub fn from_aq_rl(aq: bool, rl: bool) -> Self
Create a new AmoOrdering from the two ordering bits.
Trait Implementations§
Source§impl Clone for AmoOrdering
impl Clone for AmoOrdering
Source§fn clone(&self) -> AmoOrdering
fn clone(&self) -> AmoOrdering
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 Display for AmoOrdering
impl Display for AmoOrdering
Source§impl Hash for AmoOrdering
impl Hash for AmoOrdering
Source§impl PartialEq for AmoOrdering
impl PartialEq for AmoOrdering
impl Copy for AmoOrdering
impl Eq for AmoOrdering
impl StructuralPartialEq for AmoOrdering
Auto Trait Implementations§
impl Freeze for AmoOrdering
impl RefUnwindSafe for AmoOrdering
impl Send for AmoOrdering
impl Sync for AmoOrdering
impl Unpin for AmoOrdering
impl UnsafeUnpin for AmoOrdering
impl UnwindSafe for AmoOrdering
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