#[repr(i32)]pub enum MemberKind {
Show 15 variants
Short = 0,
Int = 1,
Long = 2,
Double = 4,
String = 5,
Object = 6,
UByte = 9,
UShort = 10,
Uint = 11,
ULong = 12,
Bool = 14,
ObjectEx = 16,
LongLong = 17,
ULongLong = 18,
PySsizeT = 19,
}Expand description
Member type. Discriminants match PyMemberDef.type.
Variants§
Short = 0
short. Writable cells are AtomicI16.
Int = 1
Long = 2
long (c_long). Writable cells are the atomic of that width.
Double = 4
String = 5
char *. The slot is a pointer to a NUL-terminated string. Null loads
as None. Assignment is rejected.
Object = 6
UByte = 9
unsigned char. Writable cells are AtomicU8.
UShort = 10
unsigned short. Writable cells are AtomicU16.
Uint = 11
ULong = 12
unsigned long (c_ulong). Writable cells are the atomic of that width.
Bool = 14
ObjectEx = 16
LongLong = 17
long long. Writable cells are AtomicI64.
ULongLong = 18
unsigned long long. Writable cells are AtomicU64.
PySsizeT = 19
Py_ssize_t. Writable cells are AtomicIsize.
Implementations§
Trait Implementations§
Source§impl Clone for MemberKind
impl Clone for MemberKind
impl Copy for MemberKind
Source§impl Debug for MemberKind
impl Debug for MemberKind
impl Eq for MemberKind
Source§impl PartialEq for MemberKind
impl PartialEq for MemberKind
impl StructuralPartialEq for MemberKind
Auto Trait Implementations§
impl Freeze for MemberKind
impl RefUnwindSafe for MemberKind
impl Send for MemberKind
impl Sync for MemberKind
impl Unpin for MemberKind
impl UnsafeUnpin for MemberKind
impl UnwindSafe for MemberKind
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 more