Trait Equivalence

Source
pub unsafe trait Equivalence {
    type Out: Datatype;

    // Required method
    fn equivalent_datatype() -> Self::Out;
}
Expand description

A direct equivalence exists between the implementing type and an MPI datatype

§Standard section(s)

3.2.2

Required Associated Types§

Source

type Out: Datatype

The type of the equivalent MPI datatype (e.g. SystemDatatype or UserDatatype)

Required Methods§

Source

fn equivalent_datatype() -> Self::Out

The MPI datatype that is equivalent to this Rust type

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.

Implementations on Foreign Types§

Source§

impl Equivalence for bool

Source§

impl Equivalence for f32

Source§

impl Equivalence for f64

Source§

impl Equivalence for i8

Source§

impl Equivalence for i16

Source§

impl Equivalence for i32

Source§

impl Equivalence for i64

Source§

impl Equivalence for isize

Source§

impl Equivalence for u8

Source§

impl Equivalence for u16

Source§

impl Equivalence for u32

Source§

impl Equivalence for u64

Source§

impl Equivalence for usize

Implementors§