pub struct Ordered<T> {
pub ordering: Ordering,
pub inner: T,
}Expand description
Add a memory Ordering to the argument T of some instruction.
This is helpful for many kinds of *.atomic.* instructions introduced by
the shared-everything-threads proposal. Many of these instructions “build
on” existing instructions by simply adding a memory order to them.
Fields§
§ordering: OrderingThe memory ordering for this atomic instruction.
inner: TThe original argument type.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Ordered<T>where
T: Freeze,
impl<T> RefUnwindSafe for Ordered<T>where
T: RefUnwindSafe,
impl<T> Send for Ordered<T>where
T: Send,
impl<T> Sync for Ordered<T>where
T: Sync,
impl<T> Unpin for Ordered<T>where
T: Unpin,
impl<T> UnwindSafe for Ordered<T>where
T: UnwindSafe,
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