Trait TypedBool

Source
pub trait TypedBool: Sealed {
    const VALUE: bool;

    // Required method
    fn expect(msg: &'static str);
}
Expand description

Type level boolean.

Required Associated Constants§

Required Methods§

Source

fn expect(msg: &'static str)

panic!(msg) if Self is False.

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§