Struct mpi::datatype::Partition
[−]
[src]
pub struct Partition<'b, B: 'b + ?Sized, C, D> { /* fields omitted */ }
Adds a partitioning to an existing Buffer
so that it becomes Partitioned
Methods
impl<'b, B: ?Sized, C, D> Partition<'b, B, C, D> where
B: 'b + Buffer,
C: Borrow<[Count]>,
D: Borrow<[Count]>,
[src]
B: 'b + Buffer,
C: Borrow<[Count]>,
D: Borrow<[Count]>,
pub fn new(buf: &B, counts: C, displs: D) -> Partition<B, C, D>
[src]
Partition buf
using counts
and displs
Trait Implementations
impl<'b, B: ?Sized, C, D> AsDatatype for Partition<'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> Pointer for Partition<'b, B, C, D> where
B: 'b + Pointer,
[src]
B: 'b + Pointer,
impl<'b, B: ?Sized, C, D> Partitioned for Partition<'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> PartitionedBuffer for Partition<'b, B, C, D> where
B: 'b + Pointer + AsDatatype,
C: Borrow<[Count]>,
D: Borrow<[Count]>,
[src]
B: 'b + Pointer + AsDatatype,
C: Borrow<[Count]>,
D: Borrow<[Count]>,