Struct mpi::datatype::PartitionMut
[−]
[src]
pub struct PartitionMut<'b, B: 'b + ?Sized, C, D> { /* fields omitted */ }
Adds a partitioning to an existing BufferMut
so that it becomes Partitioned
Methods
impl<'b, B: ?Sized, C, D> PartitionMut<'b, B, C, D> where
B: 'b + BufferMut,
C: Borrow<[Count]>,
D: Borrow<[Count]>,
[src]
B: 'b + BufferMut,
C: Borrow<[Count]>,
D: Borrow<[Count]>,
pub fn new(buf: &mut B, counts: C, displs: D) -> PartitionMut<B, C, D>
[src]
Partition buf
using counts
and displs
Trait Implementations
impl<'b, B: ?Sized, C, D> AsDatatype for PartitionMut<'b, B, C, D> where
B: 'b + AsDatatype,
[src]
B: 'b + AsDatatype,
type Out = <B as AsDatatype>::Out
The type of the associated MPI datatype (e.g. SystemDatatype
or UserDatatype
)
fn as_datatype(&self) -> Self::Out
[src]
The associated MPI datatype
impl<'b, B: ?Sized, C, D> PointerMut for PartitionMut<'b, B, C, D> where
B: 'b + PointerMut,
[src]
B: 'b + PointerMut,
unsafe fn pointer_mut(&mut self) -> *mut c_void
[src]
A mutable pointer to the starting address in memory
impl<'b, B: ?Sized, C, D> Partitioned for PartitionMut<'b, B, C, D> where
B: 'b,
C: Borrow<[Count]>,
D: Borrow<[Count]>,
[src]
B: 'b,
C: Borrow<[Count]>,
D: Borrow<[Count]>,
fn counts(&self) -> &[Count]
[src]
The count of elements in each partition.
fn displs(&self) -> &[Count]
[src]
The displacement from the start of the buffer for each partition.
unsafe fn counts_ptr(&self) -> *const Count
[src]
A pointer to counts()
unsafe fn displs_ptr(&self) -> *const Count
[src]
A pointer to displs()
impl<'b, B: ?Sized, C, D> PartitionedBufferMut for PartitionMut<'b, B, C, D> where
B: 'b + PointerMut + AsDatatype,
C: Borrow<[Count]>,
D: Borrow<[Count]>,
[src]
B: 'b + PointerMut + AsDatatype,
C: Borrow<[Count]>,
D: Borrow<[Count]>,