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]
B: 'b + Pointer
unsafe fn with_count_and_datatype(buffer: &'b B,
count: Count,
datatype: &'d D)
-> View<'d, 'b, D, B>
count: Count,
datatype: &'d D)
-> View<'d, 'b, D, B>
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]
B: 'b + Pointer
type Out = &'d D
The type of the associated MPI datatype (e.g. SystemDatatype
or UserDatatype
)
fn as_datatype(&self) -> Self::Out
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]
B: 'b + Pointer
impl<'d, 'b, D, B: ?Sized> Pointer for View<'d, 'b, D, B> where D: 'd + Datatype,
B: 'b + Pointer
[src]
B: 'b + Pointer
impl<'d, 'b, D, B: ?Sized> Buffer for View<'d, 'b, D, B> where D: 'd + Datatype,
B: 'b + Pointer
[src]
B: 'b + Pointer