643 matching pages, found in 351 ms
Ask StyxWritten on your GPU machine; takes a few seconds the first time.
-
rust.docs.kernel.orghttps://rust.docs.kernel.org › core › cmp › enum.OrderingOrdering in core::cmp - Rust
More about rust.docs.kernel.org
… const fn reverse (self) -> Ordering Reverses the Ordering . Less becomes Greater . Greater becomes Less . Equal becomes Equal . § Examples Basic behavior: use std::cmp::Ordering; assert_eq! (Ordering::Less.reverse(), Ordering::Greater); assert_eq …
-
rust.docs.kernel.orghttps://rust.docs.kernel.org › … › cmp › enum.OrderingOrdering in core::cmp - Rust
More about rust.docs.kernel.org
… const fn reverse (self) -> Ordering Reverses the Ordering . Less becomes Greater . Greater becomes Less . Equal becomes Equal . § Examples Basic behavior: use std::cmp::Ordering; assert_eq! (Ordering::Less.reverse(), Ordering::Greater); assert_eq …
-
rust.docs.kernel.orghttps://rust.docs.kernel.org › … › atomic › enum.OrderingOrdering in core::sync::atomic - Rust
More about rust.docs.kernel.org
… non_exhaustive] pub enum Ordering { Relaxed, Release, Acquire, AcqRel, SeqCst, } Expand description Atomic memory orderings Memory orderings specify the way atomic operations synchronize memory. In its weakest Ordering::Relaxed , only the memory …
-
rust.docs.kernel.orghttps://rust.docs.kernel.org › … › atomic › enum.OrderingOrdering in core::sync::atomic - Rust
More about rust.docs.kernel.org
… non_exhaustive] pub enum Ordering { Relaxed, Release, Acquire, AcqRel, SeqCst, } Expand description Atomic memory orderings Memory orderings specify the way atomic operations synchronize memory. In its weakest Ordering::Relaxed , only the memory …
-
rust.docs.kernel.orghttps://rust.docs.kernel.org › … › atomic › type.AtomicBoolAtomicBool in core::sync::atomic - Rust
More about rust.docs.kernel.org
… threads atomic.store( true , atomic::Ordering::Relaxed); } // It's ok to non-atomically access the value behind `ptr`, // since the reference to the atomic ended its lifetime in the block above assert_eq! ( unsafe …
-
rust.docs.kernel.orghttps://rust.docs.kernel.org › … › atomic › type.AtomicI8AtomicI8 in core::sync::atomic - Rust
More about rust.docs.kernel.org
… threads atomic.store( 1 , atomic::Ordering::Relaxed); } // It's ok to non-atomically access the value behind `ptr`, // since the reference to the atomic ended its lifetime in the block above assert_eq! ( unsafe …
-
rust.docs.kernel.orghttps://rust.docs.kernel.org › … › atomic › type.AtomicU8AtomicU8 in core::sync::atomic - Rust
More about rust.docs.kernel.org
… threads atomic.store( 1 , atomic::Ordering::Relaxed); } // It's ok to non-atomically access the value behind `ptr`, // since the reference to the atomic ended its lifetime in the block above assert_eq! ( unsafe …
-
rust.docs.kernel.orghttps://rust.docs.kernel.org › … › atomic › type.AtomicI64AtomicI64 in core::sync::atomic - Rust
More about rust.docs.kernel.org
… threads atomic.store( 1 , atomic::Ordering::Relaxed); } // It's ok to non-atomically access the value behind `ptr`, // since the reference to the atomic ended its lifetime in the block above assert_eq! ( unsafe …
-
rust.docs.kernel.orghttps://rust.docs.kernel.org › … › atomic › type.AtomicIsizeAtomicIsize in core::sync::atomic - Rust
More about rust.docs.kernel.org
… threads atomic.store( 1 , atomic::Ordering::Relaxed); } // It's ok to non-atomically access the value behind `ptr`, // since the reference to the atomic ended its lifetime in the block above assert_eq! ( unsafe …
-
rust.docs.kernel.orghttps://rust.docs.kernel.org › … › atomic › struct.AtomicAtomic in kernel::sync::atomic - Rust
More about rust.docs.kernel.org
… comparison is done via the byte level comparison between *self and old . Ordering: When succeeds, provides the corresponding ordering as the Ordering type parameter indicates, and a failed one doesn’t provide any …
Search for “The Order site:rust.docs.kernel.org” on Google, or add !ddg, !w and other shortcuts to any search.