pub struct PyNativeTypeInitializer<T: PyTypeInfo>(/* private fields */);
Expand description
Initializer for Python native types, like PyDict
.
Trait Implementations§
Source§impl<T: PyTypeInfo> PyObjectInit<T> for PyNativeTypeInitializer<T>
impl<T: PyTypeInfo> PyObjectInit<T> for PyNativeTypeInitializer<T>
Source§unsafe fn into_new_object(
self,
py: Python<'_>,
subtype: *mut PyTypeObject,
) -> PyResult<*mut PyObject>
unsafe fn into_new_object( self, py: Python<'_>, subtype: *mut PyTypeObject, ) -> PyResult<*mut PyObject>
Safety Read more
Source§fn __private__(&self) -> PrivateMarker
fn __private__(&self) -> PrivateMarker
This trait is private to implement; this method exists to make it
impossible to implement outside the crate.
Auto Trait Implementations§
impl<T> Freeze for PyNativeTypeInitializer<T>
impl<T> RefUnwindSafe for PyNativeTypeInitializer<T>where
T: RefUnwindSafe,
impl<T> Send for PyNativeTypeInitializer<T>where
T: Send,
impl<T> Sync for PyNativeTypeInitializer<T>where
T: Sync,
impl<T> Unpin for PyNativeTypeInitializer<T>where
T: Unpin,
impl<T> UnwindSafe for PyNativeTypeInitializer<T>where
T: 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