OptModelTrait

Trait OptModelTrait 

Source
pub trait OptModelTrait<const LEN_Y: usize, const LEN_P: usize, const LEN_B: usize, const LEN_X: usize>:
    SimModelTrait<LEN_Y, LEN_P, LEN_B>
    + Clone
    + Send
    + 'static {
    // Required method
    fn getx(&self) -> (Vec<usize>, Option<Vec<(f64, f64)>>);

    // Provided methods
    fn getp(&self) -> &[f64; LEN_P] { ... }
    fn setp(&mut self, _index: usize, _value: f64) { ... }
}

Required Methods§

Source

fn getx(&self) -> (Vec<usize>, Option<Vec<(f64, f64)>>)

Provided Methods§

Source

fn getp(&self) -> &[f64; LEN_P]

Source

fn setp(&mut self, _index: usize, _value: f64)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§