pub struct InstantiateResultObject { /* private fields */ }
Trait Implementations§
Source§impl IntoPy<PyObject> for InstantiateResultObject
impl IntoPy<PyObject> for InstantiateResultObject
Source§impl PyObjectAlloc for InstantiateResultObject
impl PyObjectAlloc for InstantiateResultObject
Source§impl PyTypeInfo for InstantiateResultObject
impl PyTypeInfo for InstantiateResultObject
Source§const DESCRIPTION: &'static str = "\u{0}"
const DESCRIPTION: &'static str = "\u{0}"
Class doc string
Source§type Type = InstantiateResultObject
type Type = InstantiateResultObject
Type of objects to store in PyObject struct
Source§unsafe fn type_object() -> &'static mut PyTypeObject
unsafe fn type_object() -> &'static mut PyTypeObject
PyTypeObject instance for this type, which might still need to
be initialized
Source§fn is_instance(object: &PyAny) -> bool
fn is_instance(object: &PyAny) -> bool
Check if
*mut ffi::PyObject
is instance of this typeSource§fn is_exact_instance(object: &PyAny) -> bool
fn is_exact_instance(object: &PyAny) -> bool
Check if
*mut ffi::PyObject
is exact instance of this typeAuto Trait Implementations§
impl Freeze for InstantiateResultObject
impl !RefUnwindSafe for InstantiateResultObject
impl Send for InstantiateResultObject
impl Sync for InstantiateResultObject
impl Unpin for InstantiateResultObject
impl !UnwindSafe for InstantiateResultObject
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> Pointable for T
impl<T> Pointable for T
Source§impl<T> PyMethodsProtocol for Twhere
T: PyMethodsInventoryDispatch,
impl<T> PyMethodsProtocol for Twhere
T: PyMethodsInventoryDispatch,
Source§fn py_methods() -> Vec<&'static PyMethodDefType>
fn py_methods() -> Vec<&'static PyMethodDefType>
Returns all methods that are defined for a class
Source§impl<'v, T> PyTryFrom<'v> for Twhere
T: PyTypeInfo,
impl<'v, T> PyTryFrom<'v> for Twhere
T: PyTypeInfo,
Source§fn try_from<V>(value: V) -> Result<&'v T, PyDowncastError>
fn try_from<V>(value: V) -> Result<&'v T, PyDowncastError>
Cast from a concrete Python object type to PyObject.
Source§fn try_from_exact<V>(value: V) -> Result<&'v T, PyDowncastError>
fn try_from_exact<V>(value: V) -> Result<&'v T, PyDowncastError>
Cast from a concrete Python object type to PyObject. With exact type check.
Source§fn try_from_mut<V>(value: V) -> Result<&'v mut T, PyDowncastError>
fn try_from_mut<V>(value: V) -> Result<&'v mut T, PyDowncastError>
Cast from a concrete Python object type to PyObject.
Source§fn try_from_mut_exact<V>(value: V) -> Result<&'v mut T, PyDowncastError>
fn try_from_mut_exact<V>(value: V) -> Result<&'v mut T, PyDowncastError>
Cast from a concrete Python object type to PyObject. With exact type check.
Source§unsafe fn try_from_unchecked<V>(value: V) -> &'v T
unsafe fn try_from_unchecked<V>(value: V) -> &'v T
Cast a PyAny to a specific type of PyObject. The caller must
have already verified the reference is for this type.
Source§impl<T> PyTypeCreate for Twhere
T: PyObjectAlloc + PyTypeObject,
impl<T> PyTypeCreate for Twhere
T: PyObjectAlloc + PyTypeObject,
Source§impl<T> PyTypeObject for T
impl<T> PyTypeObject for T
Source§fn init_type() -> NonNull<PyTypeObject>
fn init_type() -> NonNull<PyTypeObject>
This function must make sure that the corresponding type object gets
initialized exactly once and return it.
Source§fn type_object() -> Py<PyType>
fn type_object() -> Py<PyType>
Returns the safe abstraction over the type object from PyTypeObject::init_type