Struct mpi::datatype::DynBufferMut [] [src]

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

A mutable 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 &mut Any. It is semantically equivalent to the mutable trait object reference &mut BufferMut.

Methods

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

[src]

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

[src]

Tests whether the buffer type matches T.

[src]

Returns some mutable 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.

[src]

Returns the underlying raw pointer.

[src]

Reborrows the buffer with a shorter lifetime.

[src]

Reborrows the buffer mutably with a shorter lifetime.

[src]

Makes the buffer immutable.

Trait Implementations

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

[src]

Formats the value using the given formatter. Read more

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

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

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

[src]

How many things are in this collection.

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

[src]

A pointer to the starting address in memory

impl<'a> PointerMut for DynBufferMut<'a>
[src]

[src]

A mutable pointer to the starting address in memory

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

impl<'a> BufferMut for DynBufferMut<'a>
[src]

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

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

[src]

The associated MPI datatype