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.