Struct mpi::datatype::DynBuffer [] [src]

pub struct DynBuffer<'a> { /* fields omitted */ }

An immutable dynamically-typed buffer.

The buffer has a definite length and MPI datatype, but it is not yet known which Rust type it corresponds to. This is the MPI analogue of &Any. It is semantically equivalent to the trait object reference &Buffer.

Methods

impl<'a> DynBuffer<'a>
[src]

[src]

Creates a buffer from a slice with whose type has an MPI equivalent.

[src]

Tests whether the buffer type matches T.

[src]

Returns some slice if the type matches T, or None if it doesn't.

[src]

Creates a buffer from its raw components. The buffer must remain valid for 'a and the pointer must not be null.

[src]

Returns the number of elements in the buffer.

[src]

Returns true if the buffer is empty

[src]

Returns the underlying raw pointer.

Trait Implementations

impl<'a> Copy for DynBuffer<'a>
[src]

impl<'a> Clone for DynBuffer<'a>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> Debug for DynBuffer<'a>
[src]

[src]

Formats the value using the given formatter. Read more

impl<'a> Send for DynBuffer<'a>
[src]

impl<'a> Sync for DynBuffer<'a>
[src]

impl<'a> Collection for DynBuffer<'a>
[src]

[src]

How many things are in this collection.

impl<'a> Pointer for DynBuffer<'a>
[src]

[src]

A pointer to the starting address in memory

impl<'a> AsDatatype for DynBuffer<'a>
[src]

The type of the associated MPI datatype (e.g. SystemDatatype or UserDatatype)

[src]

The associated MPI datatype

impl<'a> Buffer for DynBuffer<'a>
[src]