pub struct NormalizationContext {
pub surplus_index: usize,
pub slack_index: usize,
pub total_variables: usize,
}Expand description
Context for tracking the normalization process of converting constraints to standard form.
This struct maintains indices for surplus and slack variables that are added during normalization, as well as the total count of variables in the system.
Fields§
§surplus_index: usizeCounter for surplus variables added to handle <= constraints
slack_index: usizeCounter for slack variables added to handle >= constraints
total_variables: usizeTotal number of variables in the system
Auto Trait Implementations§
impl Freeze for NormalizationContext
impl RefUnwindSafe for NormalizationContext
impl Send for NormalizationContext
impl Sync for NormalizationContext
impl Unpin for NormalizationContext
impl UnsafeUnpin for NormalizationContext
impl UnwindSafe for NormalizationContext
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> 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