Skip to main content

Partitioned

Trait Partitioned 

Source
pub unsafe trait Partitioned {
    // Required methods
    fn as_datatype(&self) -> DatatypeRef;
    fn counts(&self) -> &[Count] ;
    fn displs(&self) -> &[Count] ;
}
Expand description

A buffer whose elements are partitioned into per-rank blocks of possibly differing sizes, described by counts and displacements. Used by the varying-count (“v”) collectives.

§Safety

The counts and displacements must describe blocks that lie within the underlying buffer.

Required Methods§

Source

fn as_datatype(&self) -> DatatypeRef

The datatype of one element.

Source

fn counts(&self) -> &[Count]

Per-block element counts.

Source

fn displs(&self) -> &[Count]

Per-block element displacements (in elements from the start).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§