This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern crate atomig; // v0.4.1 | |
extern crate bitflags; // v2.5.0 | |
use core::sync::atomic::Ordering; | |
use atomig::*; | |
/// Extension trait to add flags related functions to [`atomig::Atomic`] | |
pub trait AtomicFlagsExt<Flags> | |
{ | |
fn fetch_insert(&self, val: Flags, order: Ordering) -> Flags; |