pub struct PyNone(/* private fields */);
Expand description
Represents the Python None
object.
Values of this type are accessed via PyO3’s smart pointers, e.g. as
Py<PyNone>
or Bound<'py, PyNone>
.
Implementations§
Trait Implementations§
Source§impl AsPyPointer for PyNone
impl AsPyPointer for PyNone
Source§impl PyTypeInfo for PyNone
impl PyTypeInfo for PyNone
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 PyNone
Auto Trait Implementations§
impl !Freeze for PyNone
impl !RefUnwindSafe for PyNone
impl !Send for PyNone
impl !Sync for PyNone
impl Unpin for PyNone
impl UnwindSafe for PyNone
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