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