pub struct XorMonoid {
pub identity: bool,
pub associative: bool,
pub self_inverse: bool,
}Expand description
XOR monoid structure: (Bool, XOR, false) is a commutative group.
Fields§
§identity: boolIdentity element is false.
associative: boolXOR is associative and commutative.
self_inverse: boolEvery element is its own inverse: a XOR a = false.
Auto Trait Implementations§
impl Freeze for XorMonoid
impl RefUnwindSafe for XorMonoid
impl Send for XorMonoid
impl Sync for XorMonoid
impl Unpin for XorMonoid
impl UnsafeUnpin for XorMonoid
impl UnwindSafe for XorMonoid
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more