pub struct XorEquation {
pub vars: Vec<usize>,
pub rhs: bool,
}Expand description
A parity equation: the XOR of the variables in vars equals rhs. (Repeated variables cancel,
per GF(2).)
Fields§
§vars: Vec<usize>Variable indices (0..num_vars) whose XOR is constrained.
rhs: boolThe right-hand side of the equation.
Implementations§
Trait Implementations§
Source§impl Clone for XorEquation
impl Clone for XorEquation
Source§fn clone(&self) -> XorEquation
fn clone(&self) -> XorEquation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for XorEquation
impl Debug for XorEquation
Source§impl PartialEq for XorEquation
impl PartialEq for XorEquation
Source§fn eq(&self, other: &XorEquation) -> bool
fn eq(&self, other: &XorEquation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for XorEquation
impl StructuralPartialEq for XorEquation
Auto Trait Implementations§
impl Freeze for XorEquation
impl RefUnwindSafe for XorEquation
impl Send for XorEquation
impl Sync for XorEquation
impl Unpin for XorEquation
impl UnsafeUnpin for XorEquation
impl UnwindSafe for XorEquation
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