This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// WARNING: This output format is intended for human consumers only | |
// and is subject to change without notice. Knock yourself out. | |
static <impl at <anon>:11:1: 33:2>::display::__STATIC_FMTSTR: &[&str] = { | |
let mut _0: &[&str]; // return pointer | |
let mut _1: &[&str; 2]; | |
let mut _2: &[&str; 2]; | |
let mut _3: [&str; 2]; | |
bb0: { | |
_3 = [const "", const "\n"]; // scope 0 at <println macros>:3:18: 3:43 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trait SwapCarriable { | |
type Out; | |
fn swap_carry(self) -> Self::Out; | |
} | |
impl<T> SwapCarriable for Vec<Option<T>> { | |
type Out = Option<Vec<T>>; | |
fn swap_carry(self) -> Option<Vec<T>> { | |
let mut buf = Vec::with_capacity(self.len()); | |
for e in self { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn main() { | |
let env = Env::new("highlevel.log").unwrap(); | |
let model = define_model! { | |
env, | |
Find: { | |
"x" @ x => Binary, | |
"y" @ y => Continuous(1.0, 2.0), | |
"z" @ z => Integer(100, 200) |