pub struct Xor { /* private fields */ }
Expand description
The XOR gate is built using a NAND, an OR, and an AND gate
a | b | out |
---|---|---|
0 | 0 | 0 |
0 | 1 | 1 |
1 | 0 | 1 |
1 | 1 | 0 |
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Xor
impl Send for Xor
impl Sync for Xor
impl Unpin for Xor
impl UnwindSafe for Xor
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more