pub struct ImportedFunc {
pub id: usize,
pub kind: usize,
pub nargs: i64,
pub name: String,
}Expand description
An AMPL imported (external) function declaration from a top-level
F<id> <type> <nargs> <name> segment.
Fields§
§id: usize§kind: usize0 = real-valued, 1 = string-args (per AMPL’s funcadd ABI).
nargs: i64Declared arg count. >=0 exact arity; <=-1 means at least -(nargs+1).
name: StringTrait Implementations§
Source§impl Clone for ImportedFunc
impl Clone for ImportedFunc
Source§fn clone(&self) -> ImportedFunc
fn clone(&self) -> ImportedFunc
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 moreAuto Trait Implementations§
impl Freeze for ImportedFunc
impl RefUnwindSafe for ImportedFunc
impl Send for ImportedFunc
impl Sync for ImportedFunc
impl Unpin for ImportedFunc
impl UnsafeUnpin for ImportedFunc
impl UnwindSafe for ImportedFunc
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> 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