Skip to main content

HasCheckedValue

Trait HasCheckedValue 

Source
pub trait HasCheckedValue {
    // Required method
    fn is_checked_value(&self) -> bool;
}
Expand description

The checked property of a type.

This can be property of enums with 2 variants that have a similar meaning to the boolean type, e.g. yes/no, agreed/rejected, open/closed, etc.

Required Methods§

Source

fn is_checked_value(&self) -> bool

Returns whether this value represents “checked”

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl HasCheckedValue for bool

Implementors§