Struct pyo3::pyclass_init::PyNativeTypeInitializer
source · pub struct PyNativeTypeInitializer<T: PyTypeInfo>(_);
Expand description
Initializer for Python native types, like PyDict
.
Trait Implementations
sourceimpl<T: PyTypeInfo> PyObjectInit<T> for PyNativeTypeInitializer<T>
impl<T: PyTypeInfo> PyObjectInit<T> for PyNativeTypeInitializer<T>
sourceunsafe 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
sourcefn __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. Read more
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more