1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//! Bridge between rust types and raw values
/// Rust C bridge traits
/// A rust type than can identify as a raw value understood by the MPI C API.
pub unsafe
unsafe
/// A rust type than can provide a mutable pointer to a raw value understood by the MPI C API.
pub unsafe
/// Conversion for the Rust type from the raw MPI handle type.
/// A marker trait that indicates the Rust type is exactly equivalent in representation to the Raw
/// type, allowing slices of the type to be used with MPI APIs that accept arrays of its Raw MPI
/// handle.
pub unsafe