mpi 0.6.0

Message Passing Interface bindings for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use mpi::traits::Equivalence;

fn main() {
    // Ensures that rsmpi panics if the user attempts to initialize the datatype before
    // initializing MPI.
    assert!(std::panic::catch_unwind(|| {
        #[derive(Equivalence)]
        struct CheckPreInitPanic;
        let _ = CheckPreInitPanic::equivalent_datatype();
    })
    .is_err());
}