Trait ToBool

Source
pub trait ToBool: Copy {
    // Required method
    fn to_bool(self) -> bool;
}

Required Methods§

Source

fn to_bool(self) -> bool

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.

Implementations on Foreign Types§

Source§

impl ToBool for bool

Source§

fn to_bool(self) -> bool

Source§

impl ToBool for gboolean

Source§

fn to_bool(self) -> bool

Implementors§