1 2 3 4 5 6 7 8 9
pub trait Conditional { fn val(&self) -> bool; } impl Conditional for bool { fn val(&self) -> bool { *self } }
1 2 3 4 5 6 7 8 9
pub trait Conditional { fn val(&self) -> bool; } impl Conditional for bool { fn val(&self) -> bool { *self } }