pub trait Logical: Clone + Sized {
// Required methods
fn bool_and(&self, b: &Self) -> bool;
fn bool_or(&self, b: &Self) -> bool;
fn bool_xor(&self, b: &Self) -> bool;
fn bool_not(&self) -> bool;
fn bitwise_reverse(&self) -> Self;
// Provided methods
fn logical_and(&self, b: &Self) -> Self { ... }
fn logical_or(&self, b: &Self) -> Self { ... }
fn logical_xor(&self, b: &Self) -> Self { ... }
}Required Methods§
fn bool_and(&self, b: &Self) -> bool
fn bool_or(&self, b: &Self) -> bool
fn bool_xor(&self, b: &Self) -> bool
fn bool_not(&self) -> bool
fn bitwise_reverse(&self) -> Self
Provided Methods§
fn logical_and(&self, b: &Self) -> Self
fn logical_or(&self, b: &Self) -> Self
fn logical_xor(&self, b: &Self) -> Self
Object Safety§
This trait is not object safe.