Trait mpi::datatype::AsDatatype

source ·
pub unsafe trait AsDatatype {
    type Out: Datatype;

    // Required method
    fn as_datatype(&self) -> Self::Out;
}
Expand description

Something that has an associated datatype

Required Associated Types§

source

type Out: Datatype

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

Required Methods§

source

fn as_datatype(&self) -> Self::Out

The associated MPI datatype

Implementations on Foreign Types§

source§

impl<T> AsDatatype for [T]
where T: Equivalence,

§

type Out = <T as Equivalence>::Out

source§

fn as_datatype(&self) -> Self::Out

source§

impl<T> AsDatatype for Vec<T>
where T: Equivalence,

§

type Out = <T as Equivalence>::Out

source§

fn as_datatype(&self) -> Self::Out

source§

impl<T, const D: usize> AsDatatype for [T; D]
where T: Equivalence,

§

type Out = <T as Equivalence>::Out

source§

fn as_datatype(&self) -> Self::Out

Implementors§

source§

impl<'a> AsDatatype for DynBuffer<'a>

§

type Out = DatatypeRef<'a>

source§

impl<'a> AsDatatype for DynBufferMut<'a>

§

type Out = DatatypeRef<'a>

source§

impl<'b, B, C, D> AsDatatype for Partition<'b, B, C, D>
where B: 'b + AsDatatype + ?Sized,

§

type Out = <B as AsDatatype>::Out

source§

impl<'b, B, C, D> AsDatatype for PartitionMut<'b, B, C, D>
where B: 'b + AsDatatype + ?Sized,

§

type Out = <B as AsDatatype>::Out

source§

impl<'d, 'b, D, B> AsDatatype for MutView<'d, 'b, D, B>
where D: 'd + Datatype, B: 'b + PointerMut + ?Sized,

§

type Out = &'d D

source§

impl<'d, 'b, D, B> AsDatatype for View<'d, 'b, D, B>
where D: 'd + Datatype, B: 'b + Pointer + ?Sized,

§

type Out = &'d D

source§

impl<T> AsDatatype for T
where T: Equivalence,

§

type Out = <T as Equivalence>::Out