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