pub enum OptionalSection<'input> {
Bounds(Vec<(&'input str, VariableType)>),
Generals(Vec<&'input str>),
Integers(Vec<&'input str>),
Binaries(Vec<&'input str>),
SemiContinuous(Vec<&'input str>),
SOS(Vec<RawConstraint<'input>>),
}Expand description
Helper enum for optional sections that can appear in any order.
Variants§
Bounds(Vec<(&'input str, VariableType)>)
Generals(Vec<&'input str>)
Integers(Vec<&'input str>)
Binaries(Vec<&'input str>)
SemiContinuous(Vec<&'input str>)
SOS(Vec<RawConstraint<'input>>)
Trait Implementations§
Source§impl<'input> Clone for OptionalSection<'input>
impl<'input> Clone for OptionalSection<'input>
Source§fn clone(&self) -> OptionalSection<'input>
fn clone(&self) -> OptionalSection<'input>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'input> Debug for OptionalSection<'input>
impl<'input> Debug for OptionalSection<'input>
Source§impl<'input> PartialEq for OptionalSection<'input>
impl<'input> PartialEq for OptionalSection<'input>
impl<'input> StructuralPartialEq for OptionalSection<'input>
Auto Trait Implementations§
impl<'input> Freeze for OptionalSection<'input>
impl<'input> RefUnwindSafe for OptionalSection<'input>
impl<'input> Send for OptionalSection<'input>
impl<'input> Sync for OptionalSection<'input>
impl<'input> Unpin for OptionalSection<'input>
impl<'input> UnsafeUnpin for OptionalSection<'input>
impl<'input> UnwindSafe for OptionalSection<'input>
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