pub struct PyTypeFlags(/* private fields */);Implementations§
Source§impl PyTypeFlags
impl PyTypeFlags
pub const INLINE_VALUES: u8 = 2
pub const MANAGED_WEAKREF: u8 = 3
pub const MANAGED_DICT: u8 = 4
pub const SEQUENCE: u8 = 5
pub const MAPPING: u8 = 6
pub const DISALLOW_INSTANTIATION: u8 = 7
pub const IMMUTABLETYPE: u8 = 8
pub const HEAPTYPE: u8 = 9
pub const BASETYPE: u8 = 10
pub const METHOD_DESCRIPTOR: u8 = 17
pub const IS_ABSTRACT: u8 = 20
pub const _MATCH_SELF: u8 = 22
pub const HAS_DICT: u8 = 40
pub const HAS_WEAKREF: u8 = 41
pub const _CREATED_WITH_FLAGS: u8 = 63
pub const fn new() -> Self
pub const fn empty() -> Self
pub const fn all() -> Self
pub const fn bits(&self) -> u64
pub const fn as_bits(&self) -> &u64
pub const fn from_element(pos: u8) -> Self
pub const fn from_slice(positions: &[u8]) -> Self
pub const fn from_bits(bits: u64) -> Option<Self>
pub const fn from_bits_retain(bits: u64) -> Self
pub const unsafe fn from_bits_unchecked(bits: u64) -> Self
pub const fn from_bits_truncate(bits: u64) -> Self
pub const fn len(&self) -> usize
pub const fn is_empty(&self) -> bool
pub const fn is_all(&self) -> bool
pub const fn contains(&self, pos: &u8) -> bool
pub fn set(&mut self, pos: u8, value: bool)
pub fn insert(&mut self, pos: u8) -> bool
pub fn remove(&mut self, pos: u8) -> bool
pub fn toggle(&mut self, pos: u8)
pub fn clear(&mut self)
pub const fn is_subset(&self, other: &Self) -> bool
pub const fn is_superset(&self, other: &Self) -> bool
pub const fn is_disjoint(&self, other: &Self) -> bool
pub const fn complement(self) -> Self
pub fn iter(&self) -> PrimBitSetIter<u64, u8> ⓘ
pub fn first(&self) -> Option<u8>
pub fn last(&self) -> Option<u8>
pub fn pop_first(&mut self) -> Option<u8>
pub fn pop_last(&mut self) -> Option<u8>
pub fn retain(&mut self, f: impl FnMut(u8) -> bool)
pub fn iter_names(&self) -> impl Iterator<Item = (&'static str, u8)>
pub fn from_name(name: &str) -> Option<Self>
Source§impl PyTypeFlags
impl PyTypeFlags
pub const HEAP_TYPE: Self
pub const HEAP_TYPE_WITH_DICT: Self
pub const HEAP_TYPE_DICT_IMMUTABLE: Self
pub const COLLECTION: Self
Trait Implementations§
Source§impl Binary for PyTypeFlags
impl Binary for PyTypeFlags
Source§impl BitAnd for PyTypeFlags
impl BitAnd for PyTypeFlags
Source§type Output = PyTypeFlags
type Output = PyTypeFlags
The resulting type after applying the
& operator.Source§impl BitAndAssign for PyTypeFlags
impl BitAndAssign for PyTypeFlags
Source§fn bitand_assign(&mut self, rhs: PyTypeFlags)
fn bitand_assign(&mut self, rhs: PyTypeFlags)
Performs the
&= operation. Read moreSource§impl BitFlagSet<u8, u64> for PyTypeFlags
impl BitFlagSet<u8, u64> for PyTypeFlags
const BITS: u8
fn empty() -> Self
fn from_bits_retain(raw: u64) -> Self
fn from_element(element: u8) -> Self
fn first(&self) -> Option<u8>
fn last(&self) -> Option<u8>
fn pop_first(&mut self) -> Option<u8>
fn pop_last(&mut self) -> Option<u8>
fn len(&self) -> usize
fn is_empty(&self) -> bool
fn contains(&self, value: &u8) -> bool
fn retain(&mut self, f: impl FnMut(u8) -> bool)
fn insert(&mut self, value: u8) -> bool
fn remove(&mut self, value: u8) -> bool
fn is_subset(&self, other: &Self) -> bool
fn is_superset(&self, other: &Self) -> bool
fn is_disjoint(&self, other: &Self) -> bool
fn iter(&self) -> PrimBitSetIter<u64, u8> ⓘ
fn to_vec(&self) -> Vec<T>
Source§impl BitOr for PyTypeFlags
impl BitOr for PyTypeFlags
Source§type Output = PyTypeFlags
type Output = PyTypeFlags
The resulting type after applying the
| operator.Source§impl BitOrAssign for PyTypeFlags
impl BitOrAssign for PyTypeFlags
Source§fn bitor_assign(&mut self, rhs: PyTypeFlags)
fn bitor_assign(&mut self, rhs: PyTypeFlags)
Performs the
|= operation. Read moreSource§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 BitXor for PyTypeFlags
impl BitXor for PyTypeFlags
Source§type Output = PyTypeFlags
type Output = PyTypeFlags
The resulting type after applying the
^ operator.Source§impl BitXorAssign for PyTypeFlags
impl BitXorAssign for PyTypeFlags
Source§fn bitxor_assign(&mut self, rhs: PyTypeFlags)
fn bitxor_assign(&mut self, rhs: PyTypeFlags)
Performs the
^= operation. Read moreSource§impl Clone for PyTypeFlags
impl Clone for PyTypeFlags
impl Copy for PyTypeFlags
Source§impl Debug for PyTypeFlags
impl Debug for PyTypeFlags
Source§impl Default for PyTypeFlags
impl Default for PyTypeFlags
Source§impl Display for PyTypeFlags
impl Display for PyTypeFlags
impl Eq for PyTypeFlags
Source§impl Extend<PyTypeFlags> for PyTypeFlags
impl Extend<PyTypeFlags> for PyTypeFlags
Source§fn extend<I: IntoIterator<Item = PyTypeFlags>>(&mut self, iter: I)
fn extend<I: IntoIterator<Item = PyTypeFlags>>(&mut self, iter: I)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: T)
fn extend_one(&mut self, item: T)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl Extend<u8> for PyTypeFlags
impl Extend<u8> for PyTypeFlags
Source§fn extend<I: IntoIterator<Item = u8>>(&mut self, iter: I)
fn extend<I: IntoIterator<Item = u8>>(&mut self, iter: I)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: T)
fn extend_one(&mut self, item: T)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
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 FromIterator<PyTypeFlags> for PyTypeFlags
impl FromIterator<PyTypeFlags> for PyTypeFlags
Source§fn from_iter<I: IntoIterator<Item = PyTypeFlags>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = PyTypeFlags>>(iter: I) -> Self
Creates a value from an iterator. Read more
Source§impl FromIterator<u8> for PyTypeFlags
impl FromIterator<u8> for PyTypeFlags
Source§impl Index<<PyTypeFlags as IntoIterator>::Item> for AtomicPyTypeFlags
impl Index<<PyTypeFlags as IntoIterator>::Item> for AtomicPyTypeFlags
Source§impl Index<u8> for PyTypeFlags
impl Index<u8> for PyTypeFlags
Source§impl IntoIterator for PyTypeFlags
impl IntoIterator for PyTypeFlags
Source§impl LowerHex for PyTypeFlags
impl LowerHex for PyTypeFlags
Source§impl NamedFlags for PyTypeFlags
impl NamedFlags for PyTypeFlags
Source§impl Not for PyTypeFlags
impl Not for PyTypeFlags
Source§impl Octal for PyTypeFlags
impl Octal for PyTypeFlags
Source§impl PartialEq for PyTypeFlags
impl PartialEq for PyTypeFlags
impl StructuralPartialEq for PyTypeFlags
Source§impl Sub for PyTypeFlags
impl Sub for PyTypeFlags
Source§type Output = PyTypeFlags
type Output = PyTypeFlags
The resulting type after applying the
- operator.Source§impl SubAssign for PyTypeFlags
impl SubAssign for PyTypeFlags
Source§fn sub_assign(&mut self, rhs: PyTypeFlags)
fn sub_assign(&mut self, rhs: PyTypeFlags)
Performs the
-= operation. Read moreAuto Trait Implementations§
impl Freeze for PyTypeFlags
impl RefUnwindSafe for PyTypeFlags
impl Send for PyTypeFlags
impl Sync for PyTypeFlags
impl Unpin for PyTypeFlags
impl UnsafeUnpin for PyTypeFlags
impl UnwindSafe for PyTypeFlags
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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