Trait rv::data::Booleable[][src]

pub trait Booleable: Sized + Sync + Copy {
    fn from_bool(b: bool) -> Self;
fn try_into_bool(self) -> Option<bool>; fn into_bool(self) -> bool { ... } }

Converts to and from a bool

Required methods

fn from_bool(b: bool) -> Self[src]

Convert from bool. Should never panic.

fn try_into_bool(self) -> Option<bool>[src]

Try to convert into bool. Returns None if cannot be converted.

Loading content...

Provided methods

fn into_bool(self) -> bool[src]

Convert into bool Will panic if cannot be converted.

Loading content...

Implementations on Foreign Types

impl Booleable for bool[src]

impl Booleable for u8[src]

impl Booleable for u16[src]

impl Booleable for u32[src]

impl Booleable for u64[src]

impl Booleable for usize[src]

impl Booleable for i8[src]

impl Booleable for i16[src]

impl Booleable for i32[src]

impl Booleable for i64[src]

impl Booleable for isize[src]

Loading content...

Implementors

Loading content...