pyo3::pyclass::boolean_struct::private

Trait Boolean

Source
pub trait Boolean {
    const VALUE: bool;
}
Expand description

A way to “seal” the boolean traits.

Required Associated Constants§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl Boolean for False

Source§

const VALUE: bool = false

Source§

impl Boolean for True

Source§

const VALUE: bool = true

⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here