devela::_dep::pyo3::prelude

Trait PyBoolMethods

pub trait PyBoolMethods<'py>: Sealed {
    // Required method
    fn is_true(&self) -> bool;
}
Available on crate features dep_pyo3 and std only.
Expand description

Implementation of functionality for PyBool.

These methods are defined for the Bound<'py, PyBool> smart pointer, so to use method call syntax these methods are separated into a trait, because stable Rust does not yet support arbitrary_self_types.

Required Methods§

fn is_true(&self) -> bool

Gets whether this boolean is true.

Implementors§

§

impl<'py> PyBoolMethods<'py> for Bound<'py, PyBool>