Skip to main content

BoolYesNo

Trait BoolYesNo 

Source
pub trait BoolYesNo {
    // Required method
    fn yesno(&self) -> &'static str;
}
Expand description

Converts bool to yes/no static str

Required Methods§

Source

fn yesno(&self) -> &'static str

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl BoolYesNo for bool

Source§

fn yesno(&self) -> &'static str

Implementors§