RsBundle  Diff

Differences From Artifact [1d218ba7f1]:

  • File src/mcf/problem.rs — part of check-in [32372fda04] at 2018-12-12 15:38:03 on branch trunk — Replace `extern crate` with `use` (user: fifr size: 10444) [more...]

To Artifact [f6d580e450]:

  • File src/mcf/problem.rs — part of check-in [45d9ecf62b] at 2019-12-21 21:28:16 on branch modifyprimals — Add `dyn` to trait object types (user: fifr size: 10448)

37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
        write!(fmt, "Format error: {}", self.msg)
    }
}

impl Error for MMCFFormatError {}

/// Result type of the MMCFProblem.
pub type Result<T> = result::Result<T, Box<Error>>;

#[derive(Clone, Copy, Debug)]
struct ArcInfo {
    arc: usize,
    src: usize,
    snk: usize,
}







|







37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
        write!(fmt, "Format error: {}", self.msg)
    }
}

impl Error for MMCFFormatError {}

/// Result type of the MMCFProblem.
pub type Result<T> = result::Result<T, Box<dyn Error>>;

#[derive(Clone, Copy, Debug)]
struct ArcInfo {
    arc: usize,
    src: usize,
    snk: usize,
}