mod atomic_bool_private { pub trait Sealed { } }
pub trait IsntAtomicBoolExt: atomic_bool_private::Sealed {
#[must_use]
fn not_into_inner(self) -> bool;
#[must_use]
fn not_load(&self, order: std::sync::atomic::Ordering) -> bool;
#[must_use]
fn not_swap(&self, val: bool, order: std::sync::atomic::Ordering) -> bool;
#[must_use]
fn not_fetch_and(&self, val: bool, order: std::sync::atomic::Ordering) -> bool;
#[must_use]
fn not_fetch_nand(&self, val: bool, order: std::sync::atomic::Ordering) -> bool;
#[must_use]
fn not_fetch_xor(&self, val: bool, order: std::sync::atomic::Ordering) -> bool;
#[must_use]
fn not_fetch_not(&self, order: std::sync::atomic::Ordering) -> bool;
}
impl atomic_bool_private::Sealed for std::sync::atomic::AtomicBool { }
impl IsntAtomicBoolExt for std::sync::atomic::AtomicBool {
#[inline]
fn not_into_inner(self) -> bool {
!self.into_inner()
}
#[inline]
fn not_load(&self, order: std::sync::atomic::Ordering) -> bool {
!self.load(order)
}
#[inline]
fn not_swap(&self, val: bool, order: std::sync::atomic::Ordering) -> bool {
!self.swap(val, order)
}
#[inline]
fn not_fetch_and(&self, val: bool, order: std::sync::atomic::Ordering) -> bool {
!self.fetch_and(val, order)
}
#[inline]
fn not_fetch_nand(&self, val: bool, order: std::sync::atomic::Ordering) -> bool {
!self.fetch_nand(val, order)
}
#[inline]
fn not_fetch_xor(&self, val: bool, order: std::sync::atomic::Ordering) -> bool {
!self.fetch_xor(val, order)
}
#[inline]
fn not_fetch_not(&self, order: std::sync::atomic::Ordering) -> bool {
!self.fetch_not(order)
}
}