pub struct Complementarity {
pub k: u8,
pub i: u32,
}Expand description
Complementarity declaration for a constraint (D. M. Gay, Table 17, line type 5:
5 k i where k says which bounds on v_{i-1} are finite).
Fields§
§k: u8Bits: 1 = finite lower bound, 2 = finite upper bound, 3 = both.
i: u321-based variable index i (the constraint complements v_{i-1}).
The writer’s WriteOptions::complementarity field carries the
constraint index in original (unpermuted) order and the Complementarity
here uses NL variable indices already.
Trait Implementations§
Source§impl Clone for Complementarity
impl Clone for Complementarity
Source§fn clone(&self) -> Complementarity
fn clone(&self) -> Complementarity
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 moreimpl Copy for Complementarity
Auto Trait Implementations§
impl Freeze for Complementarity
impl RefUnwindSafe for Complementarity
impl Send for Complementarity
impl Sync for Complementarity
impl Unpin for Complementarity
impl UnsafeUnpin for Complementarity
impl UnwindSafe for Complementarity
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more