Skip to main content

BooleanElement

Trait BooleanElement 

Source
pub trait BooleanElement: Sealed {
    // Required method
    fn as_boolean(&self) -> Option<bool>;
}
Expand description

Sealed Boolean input. Booleans are not implicit numeric 0/1.

Required Methods§

Source

fn as_boolean(&self) -> Option<bool>

Read a Boolean independently of its validity.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl BooleanElement for Option<bool>

Source§

impl BooleanElement for bool

Implementors§