Trait BooleanType

Source
pub trait BooleanType {
    // Required method
    fn as_bool() -> bool;
}
Expand description

A trait for types representing a boolean value.

Required Methods§

Source

fn as_bool() -> bool

The boolean representation of this type.

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§