CTBool

Trait CTBool 

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

Represents a boolean value encoded within the typesystem.

See also CTFalse and CTTrue.

Required Methods§

Source

fn to_bool() -> bool

Returns a boolean value corresponding to the implemented 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§