pub struct AtomicPyTypeFlags(/* private fields */);Implementations§
Source§impl AtomicPyTypeFlags
impl AtomicPyTypeFlags
pub fn from_bits_retain(bits: <AtomicU64 as Radium>::Item) -> Self
pub fn from_element(element: <PyTypeFlags as IntoIterator>::Item) -> Self
pub fn from_slice(slice: &[<PyTypeFlags as IntoIterator>::Item]) -> Self
pub fn contains(&self, value: &<PyTypeFlags as IntoIterator>::Item) -> bool
pub fn set(&self, value: <PyTypeFlags as IntoIterator>::Item, enabled: bool)
pub fn insert(&self, value: <PyTypeFlags as IntoIterator>::Item) -> bool
pub fn remove(&self, value: <PyTypeFlags as IntoIterator>::Item) -> bool
pub fn toggle(&self, value: <PyTypeFlags as IntoIterator>::Item)
pub fn first(&self) -> Option<<PyTypeFlags as IntoIterator>::Item>
pub fn last(&self) -> Option<<PyTypeFlags as IntoIterator>::Item>
pub fn pop_first(&self) -> Option<<PyTypeFlags as IntoIterator>::Item>
pub fn pop_last(&self) -> Option<<PyTypeFlags as IntoIterator>::Item>
pub fn retain(&self, f: impl FnMut(<PyTypeFlags as IntoIterator>::Item) -> bool)
pub fn iter(&self) -> impl Iterator<Item = <PyTypeFlags as IntoIterator>::Item>
pub fn iter_names( &self, ) -> impl Iterator<Item = (&'static str, <PyTypeFlags as IntoIterator>::Item)> + '_
pub fn from_name(name: &str) -> Option<Self>
Source§impl AtomicPyTypeFlags
impl AtomicPyTypeFlags
pub const fn new() -> Self
pub const fn empty() -> Self
pub fn as_bits(&self) -> &AtomicU64
pub unsafe fn from_bits_unchecked(bits: <AtomicU64 as Radium>::Item) -> Self
pub fn from_bits(bits: <AtomicU64 as Radium>::Item) -> Option<Self>
pub fn from_bits_truncate(bits: <AtomicU64 as Radium>::Item) -> Self
pub fn from_plain(set: PyTypeFlags) -> Self
pub fn into_plain(self) -> PyTypeFlags
pub fn swap_bits(&self, bits: &mut <AtomicU64 as Radium>::Item)
pub fn all() -> Self
pub fn is_all(&self) -> bool
pub fn complement(&self) -> Self
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn clear(&self)
pub fn is_subset(&self, other: &Self) -> bool
pub fn is_superset(&self, other: &Self) -> bool
pub fn is_disjoint(&self, other: &Self) -> bool
Source§impl AtomicPyTypeFlags
impl AtomicPyTypeFlags
pub fn load(&self) -> PyTypeFlags
pub fn has_feature(&self, flag: u8) -> bool
Sourcepub fn replace_masked(&self, mask: PyTypeFlags, value: PyTypeFlags)
pub fn replace_masked(&self, mask: PyTypeFlags, value: PyTypeFlags)
Replace mask bits with value & mask.
Sourcepub fn remove_masked(&self, mask: PyTypeFlags)
pub fn remove_masked(&self, mask: PyTypeFlags)
Clear every bit set in mask.
Trait Implementations§
Source§impl Binary for AtomicPyTypeFlags
impl Binary for AtomicPyTypeFlags
Source§impl BitOrAssign<PyTypeFlags> for AtomicPyTypeFlags
impl BitOrAssign<PyTypeFlags> for AtomicPyTypeFlags
Source§fn bitor_assign(&mut self, rhs: PyTypeFlags)
fn bitor_assign(&mut self, rhs: PyTypeFlags)
Performs the
|= operation. Read moreSource§impl Debug for AtomicPyTypeFlags
impl Debug for AtomicPyTypeFlags
Source§impl Default for AtomicPyTypeFlags
impl Default for AtomicPyTypeFlags
Source§impl Display for AtomicPyTypeFlags
impl Display for AtomicPyTypeFlags
Source§impl From<&AtomicPyTypeFlags> for PyTypeFlags
impl From<&AtomicPyTypeFlags> for PyTypeFlags
Source§fn from(value: &AtomicPyTypeFlags) -> Self
fn from(value: &AtomicPyTypeFlags) -> Self
Converts to this type from the input type.
Source§impl From<AtomicPyTypeFlags> for PyTypeFlags
impl From<AtomicPyTypeFlags> for PyTypeFlags
Source§fn from(value: AtomicPyTypeFlags) -> Self
fn from(value: AtomicPyTypeFlags) -> Self
Converts to this type from the input type.
Source§impl From<PyTypeFlags> for AtomicPyTypeFlags
impl From<PyTypeFlags> for AtomicPyTypeFlags
Source§fn from(value: PyTypeFlags) -> Self
fn from(value: PyTypeFlags) -> Self
Converts to this type from the input type.
Source§impl Index<<PyTypeFlags as IntoIterator>::Item> for AtomicPyTypeFlags
impl Index<<PyTypeFlags as IntoIterator>::Item> for AtomicPyTypeFlags
Source§impl LowerHex for AtomicPyTypeFlags
impl LowerHex for AtomicPyTypeFlags
Source§impl Octal for AtomicPyTypeFlags
impl Octal for AtomicPyTypeFlags
Auto Trait Implementations§
impl !Freeze for AtomicPyTypeFlags
impl RefUnwindSafe for AtomicPyTypeFlags
impl Send for AtomicPyTypeFlags
impl Sync for AtomicPyTypeFlags
impl Unpin for AtomicPyTypeFlags
impl UnsafeUnpin for AtomicPyTypeFlags
impl UnwindSafe for AtomicPyTypeFlags
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> Helper for T
Source§impl<T, U> ImaginaryInto<U> for Twhere
U: ImaginaryFrom<T>,
impl<T, U> ImaginaryInto<U> for Twhere
U: ImaginaryFrom<T>,
fn imaginary_into(self) -> U
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T, U> OverflowingInto<U> for Twhere
U: OverflowingFrom<T>,
impl<T, U> OverflowingInto<U> for Twhere
U: OverflowingFrom<T>,
fn overflowing_into(self) -> (U, bool)
impl<T> PrimitiveIntRandomBounds for T
impl<T> PrimitiveSignedRandomBounds for T
impl<T> PyThreadingConstraint for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T, U> RoundingInto<U> for Twhere
U: RoundingFrom<T>,
impl<T, U> RoundingInto<U> for Twhere
U: RoundingFrom<T>,
fn rounding_into(self, rm: RoundingMode) -> (U, Ordering)
Source§impl<T, U> SaturatingInto<U> for Twhere
U: SaturatingFrom<T>,
impl<T, U> SaturatingInto<U> for Twhere
U: SaturatingFrom<T>,
fn saturating_into(self) -> U
Source§impl<T> ToBinaryString for Twhere
T: Binary,
impl<T> ToBinaryString for Twhere
T: Binary,
Source§impl<T> ToCharString for Twhere
T: Display,
impl<T> ToCharString for Twhere
T: Display,
Source§fn try_to_char_string(&self) -> Result<CharString, ToCharStringError>
fn try_to_char_string(&self) -> Result<CharString, ToCharStringError>
Attempts to convert the value to a
CharString. Read moreSource§fn to_char_string(&self) -> CharString
fn to_char_string(&self) -> CharString
Converts the value to a
CharString. Read moreSource§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more