#[repr(C)]pub struct PyHeapTypeObject {Show 14 fields
pub ht_type: PyTypeObject,
pub as_async: PyAsyncMethods,
pub as_number: PyNumberMethods,
pub as_mapping: PyMappingMethods,
pub as_sequence: PySequenceMethods,
pub as_buffer: PyBufferProcs,
pub ht_name: *mut PyObject,
pub ht_slots: *mut PyObject,
pub ht_qualname: *mut PyObject,
pub ht_cached_keys: *mut c_void,
pub ht_module: *mut PyObject,
_ht_tpname: *mut i8,
pub ht_token: *mut c_void,
_spec_cache: _specialization_cache,
}Available on neither
Py_LIMITED_API nor RustPython.Fields§
§ht_type: PyTypeObject§as_async: PyAsyncMethods§as_number: PyNumberMethods§as_mapping: PyMappingMethods§as_sequence: PySequenceMethods§as_buffer: PyBufferProcs§ht_name: *mut PyObject§ht_slots: *mut PyObject§ht_qualname: *mut PyObject§ht_cached_keys: *mut c_voidAvailable on non-
§PyPy only.ht_module: *mut PyObject§_ht_tpname: *mut i8Available on
§Py_3_11 and non-PyPy only.ht_token: *mut c_voidAvailable on
§Py_3_14 only._spec_cache: _specialization_cacheAvailable on
Py_3_11 and non-PyPy only.Auto Trait Implementations§
impl !Send for PyHeapTypeObject
impl !Sync for PyHeapTypeObject
impl Forget for PyHeapTypeObject
impl Freeze for PyHeapTypeObjectwhere
*mut PyTypeObject: Freeze,
*const i8: Freeze,
*mut PyAsyncMethods: Freeze,
*mut PyNumberMethods: Freeze,
*mut PySequenceMethods: Freeze,
*mut PyMappingMethods: Freeze,
*mut PyBufferProcs: Freeze,
*mut PyMethodDef: Freeze,
*mut PyMemberDef: Freeze,
*mut PyGetSetDef: Freeze,
*mut PyObject: Freeze,
*mut c_void: Freeze,
*mut i8: Freeze,
impl Move for PyHeapTypeObject
impl RefUnwindSafe for PyHeapTypeObject
impl Unpin for PyHeapTypeObjectwhere
*mut PyTypeObject: Unpin,
*const i8: Unpin,
*mut PyAsyncMethods: Unpin,
*mut PyNumberMethods: Unpin,
*mut PySequenceMethods: Unpin,
*mut PyMappingMethods: Unpin,
*mut PyBufferProcs: Unpin,
*mut PyMethodDef: Unpin,
*mut PyMemberDef: Unpin,
*mut PyGetSetDef: Unpin,
*mut PyObject: Unpin,
*mut c_void: Unpin,
*mut i8: Unpin,
impl UnsafeUnpin for PyHeapTypeObjectwhere
*mut PyTypeObject: UnsafeUnpin,
*const i8: UnsafeUnpin,
*mut PyAsyncMethods: UnsafeUnpin,
*mut PyNumberMethods: UnsafeUnpin,
*mut PySequenceMethods: UnsafeUnpin,
*mut PyMappingMethods: UnsafeUnpin,
*mut PyBufferProcs: UnsafeUnpin,
*mut PyMethodDef: UnsafeUnpin,
*mut PyMemberDef: UnsafeUnpin,
*mut PyGetSetDef: UnsafeUnpin,
*mut PyObject: UnsafeUnpin,
*mut c_void: UnsafeUnpin,
*mut i8: UnsafeUnpin,
impl UnwindSafe for PyHeapTypeObjectwhere
*mut PyTypeObject: UnwindSafe,
*const i8: UnwindSafe,
*mut PyAsyncMethods: UnwindSafe,
*mut PyNumberMethods: UnwindSafe,
*mut PySequenceMethods: UnwindSafe,
*mut PyMappingMethods: UnwindSafe,
*mut PyBufferProcs: UnwindSafe,
*mut PyMethodDef: UnwindSafe,
*mut PyMemberDef: UnwindSafe,
*mut PyGetSetDef: UnwindSafe,
*mut PyObject: UnwindSafe,
*mut c_void: UnwindSafe,
*mut i8: UnwindSafe,
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
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> SizeHint for Twhere
T: ?Sized,
impl<T> SizeHint for Twhere
T: ?Sized,
Source§default fn lower_bound(&self) -> usize
default fn lower_bound(&self) -> usize
🔬This is a nightly-only experimental API. (
core_io_internals)Returns a lower bound on the number of elements this container-like item
contains.
For example, an array
[u8; 12] could return any value between 0 and
12 inclusively as a correct implementation. Read moreSource§impl<T> SizedTypeProperties for T
impl<T> SizedTypeProperties for T
Source§#[doc(hidden)]const SIZE: usize
#[doc(hidden)]const SIZE: usize
🔬This is a nightly-only experimental API. (
sized_type_properties)Source§#[doc(hidden)]const ALIGN: usize
#[doc(hidden)]const ALIGN: usize
🔬This is a nightly-only experimental API. (
sized_type_properties)Source§#[doc(hidden)]const ALIGNMENT: Alignment
#[doc(hidden)]const ALIGNMENT: Alignment
🔬This is a nightly-only experimental API. (
sized_type_properties)Source§#[doc(hidden)]const IS_ZST: bool
#[doc(hidden)]const IS_ZST: bool
🔬This is a nightly-only experimental API. (
sized_type_properties)Source§#[doc(hidden)]const LAYOUT: Layout
#[doc(hidden)]const LAYOUT: Layout
🔬This is a nightly-only experimental API. (
sized_type_properties)Source§#[doc(hidden)]const MAX_SLICE_LEN: usize
#[doc(hidden)]const MAX_SLICE_LEN: usize
🔬This is a nightly-only experimental API. (
sized_type_properties)The largest safe length for a
[Self]. Read more