643 matching pages, found in 351 ms

Ask StyxWritten on your GPU machine; takes a few seconds the first time.

  1. rust.docs.kernel.orghttps://rust.docs.kernel.org › core › cmp › enum.Ordering
    More about rust.docs.kernel.org
    Ordering in core::cmp - Rust

    … 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 …

    0 points
  2. rust.docs.kernel.orghttps://rust.docs.kernel.org › … › cmp › enum.Ordering
    More about rust.docs.kernel.org
    Ordering in core::cmp - Rust

    … 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 …

    0 points
  3. rust.docs.kernel.orghttps://rust.docs.kernel.org › … › atomic › enum.Ordering
    More about rust.docs.kernel.org
    Ordering in core::sync::atomic - Rust

    … 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 …

    0 points
  4. rust.docs.kernel.orghttps://rust.docs.kernel.org › … › atomic › enum.Ordering
    More about rust.docs.kernel.org
    Ordering in core::sync::atomic - Rust

    … 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 …

    0 points
  5. rust.docs.kernel.orghttps://rust.docs.kernel.org › … › atomic › type.AtomicBool
    More about rust.docs.kernel.org
    AtomicBool in core::sync::atomic - Rust

    … 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 …

    0 points
  6. rust.docs.kernel.orghttps://rust.docs.kernel.org › … › atomic › type.AtomicI8
    More about rust.docs.kernel.org
    AtomicI8 in core::sync::atomic - Rust

    … 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 …

    0 points
  7. rust.docs.kernel.orghttps://rust.docs.kernel.org › … › atomic › type.AtomicU8
    More about rust.docs.kernel.org
    AtomicU8 in core::sync::atomic - Rust

    … 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 …

    0 points
  8. rust.docs.kernel.orghttps://rust.docs.kernel.org › … › atomic › type.AtomicI64
    More about rust.docs.kernel.org
    AtomicI64 in core::sync::atomic - Rust

    … 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 …

    0 points
  9. rust.docs.kernel.orghttps://rust.docs.kernel.org › … › atomic › type.AtomicIsize
    More about rust.docs.kernel.org
    AtomicIsize in core::sync::atomic - Rust

    … 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 …

    0 points
  10. rust.docs.kernel.orghttps://rust.docs.kernel.org › … › atomic › struct.Atomic
    More about rust.docs.kernel.org
    Atomic in kernel::sync::atomic - Rust

    … 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 …

    0 points

Search for “The Order site:rust.docs.kernel.org” on Google, or add !ddg, !w and other shortcuts to any search.