Struct mpi::datatype::View [] [src]

pub struct View<'d, 'b, D, B: ?Sized> where
    D: 'd + Datatype,
    B: 'b + Pointer
{ /* fields omitted */ }

A buffer with a user specified count and datatype

Safety

Views can be used to instruct the underlying MPI library to rummage around at arbitrary locations in memory. This might be controlled later on using datatype bounds an slice lengths but for now, all View constructors are marked unsafe.

Methods

impl<'d, 'b, D, B: ?Sized> View<'d, 'b, D, B> where
    D: 'd + Datatype,
    B: 'b + Pointer
[src]

[src]

Return a view of buffer containing count instances of MPI datatype datatype.

Examples

See examples/contiguous.rs, examples/vector.rs

Trait Implementations

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

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

[src]

The associated MPI datatype

impl<'d, 'b, D, B: ?Sized> Collection for View<'d, 'b, D, B> where
    D: 'd + Datatype,
    B: 'b + Pointer
[src]

[src]

How many things are in this collection.

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

[src]

A pointer to the starting address in memory

impl<'d, 'b, D, B: ?Sized> Buffer for View<'d, 'b, D, B> where
    D: 'd + Datatype,
    B: 'b + Pointer
[src]