pub struct PyNotImplemented(/* private fields */);
Expand description
Represents the Python NotImplemented
object.
Values of this type are accessed via PyO3’s smart pointers, e.g. as
Py<PyNotImplemented>
or Bound<'py, PyNotImplemented>
.
Implementations§
Source§impl PyNotImplemented
impl PyNotImplemented
Sourcepub fn get_bound(py: Python<'_>) -> Borrowed<'_, '_, PyNotImplemented>
pub fn get_bound(py: Python<'_>) -> Borrowed<'_, '_, PyNotImplemented>
Returns the NotImplemented
object.
Trait Implementations§
Source§impl AsPyPointer for PyNotImplemented
impl AsPyPointer for PyNotImplemented
Source§impl AsRef<PyAny> for PyNotImplemented
impl AsRef<PyAny> for PyNotImplemented
Source§impl Deref for PyNotImplemented
impl Deref for PyNotImplemented
Source§impl PyTypeInfo for PyNotImplemented
impl PyTypeInfo for PyNotImplemented
Source§fn type_object_raw(_py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(_py: Python<'_>) -> *mut PyTypeObject
Returns the PyTypeObject instance for this type.
Source§fn is_type_of_bound(object: &Bound<'_, PyAny>) -> bool
fn is_type_of_bound(object: &Bound<'_, PyAny>) -> bool
Checks if
object
is an instance of this type or a subclass of this type.impl DerefToPyAny for PyNotImplemented
Auto Trait Implementations§
impl !Freeze for PyNotImplemented
impl !RefUnwindSafe for PyNotImplemented
impl !Send for PyNotImplemented
impl !Sync for PyNotImplemented
impl Unpin for PyNotImplemented
impl UnwindSafe for PyNotImplemented
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