Struct mpi::datatype::MutView [] [src]

pub struct MutView<'d, 'b, D, B: ?Sized> where
    D: 'd + Datatype,
    B: 'b + PointerMut
{ /* 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> MutView<'d, 'b, D, B> where
    D: 'd + Datatype,
    B: 'b + PointerMut
[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 MutView<'d, 'b, D, B> where
    D: 'd + Datatype,
    B: 'b + PointerMut
[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 MutView<'d, 'b, D, B> where
    D: 'd + Datatype,
    B: 'b + PointerMut
[src]

[src]

How many things are in this collection.

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

[src]

A mutable pointer to the starting address in memory

impl<'d, 'b, D, B: ?Sized> BufferMut for MutView<'d, 'b, D, B> where
    D: 'd + Datatype,
    B: 'b + PointerMut
[src]