pub struct PyBool(/* private fields */);
Expand description
Represents a Python bool
.
Values of this type are accessed via PyO3’s smart pointers, e.g. as
Py<PyBool>
or Bound<'py, PyBool>
.
For APIs available on bool
objects, see the PyBoolMethods
trait which is implemented for
Bound<'py, PyBool>
.
Implementations§
Trait Implementations§
Source§impl AsPyPointer for PyBool
impl AsPyPointer for PyBool
Source§impl PyTypeInfo for PyBool
impl PyTypeInfo for PyBool
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(obj: &Bound<'_, PyAny>) -> bool
fn is_type_of_bound(obj: &Bound<'_, PyAny>) -> bool
Checks if
object
is an instance of this type or a subclass of this type.impl DerefToPyAny for PyBool
impl PyLayout<PyBool> for PyObject
impl PySizedLayout<PyBool> for PyObject
Auto Trait Implementations§
impl !Freeze for PyBool
impl !RefUnwindSafe for PyBool
impl !Send for PyBool
impl !Sync for PyBool
impl Unpin for PyBool
impl UnwindSafe for PyBool
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