pub struct SolSuffix {
pub name: String,
pub target: SolSuffixTarget,
pub values: SolSuffixValues,
}Expand description
A single suffix block to write back into the .sol file. Mirrors
the S-segment shape of crate::nl_reader::NlSuffixes entries.
Fields§
§name: Stringname as it appears in AMPL.
target: SolSuffixTargetWhich side the suffix attaches to. Mapped to AMPL’s
ASL_Sufkind_var / _con / _obj / _prob (= 0/1/2/3).
values: SolSuffixValuesReal or integer-typed values. AMPL’s ASL_Sufkind_real flag
(0x4) on the kind byte selects this; we accept either typed
payload here and tag the kind accordingly on write.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SolSuffix
impl RefUnwindSafe for SolSuffix
impl Send for SolSuffix
impl Sync for SolSuffix
impl Unpin for SolSuffix
impl UnsafeUnpin for SolSuffix
impl UnwindSafe for SolSuffix
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T, U> Imply<T> for U
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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