Struct mpi::datatype::DatatypeRef
source · pub struct DatatypeRef<'a> { /* private fields */ }
Expand description
A reference to an MPI data type.
This is similar to a raw MPI_Datatype
but is guaranteed to be a valid for 'a
.
Trait Implementations§
source§impl<'a> AsRaw for DatatypeRef<'a>
impl<'a> AsRaw for DatatypeRef<'a>
source§impl<'a> Clone for DatatypeRef<'a>
impl<'a> Clone for DatatypeRef<'a>
source§fn clone(&self) -> DatatypeRef<'a>
fn clone(&self) -> DatatypeRef<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for DatatypeRef<'a>
impl<'a> Debug for DatatypeRef<'a>
source§impl<'a> From<&'a UserDatatype> for DatatypeRef<'a>
impl<'a> From<&'a UserDatatype> for DatatypeRef<'a>
source§fn from(datatype: &'a UserDatatype) -> Self
fn from(datatype: &'a UserDatatype) -> Self
Converts to this type from the input type.
source§impl<'a> From<DatatypeRef<'a>> for UncommittedDatatypeRef<'a>
impl<'a> From<DatatypeRef<'a>> for UncommittedDatatypeRef<'a>
source§fn from(datatype_ref: DatatypeRef<'a>) -> Self
fn from(datatype_ref: DatatypeRef<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> FromRaw for DatatypeRef<'a>
impl<'a> FromRaw for DatatypeRef<'a>
source§unsafe fn from_raw(datatype: MPI_Datatype) -> Self
unsafe fn from_raw(datatype: MPI_Datatype) -> Self
Constructs the Rust type, with all its semantics, from the raw MPI type. Read more
source§impl<'a> UncommittedDatatype for DatatypeRef<'a>
impl<'a> UncommittedDatatype for DatatypeRef<'a>
§type DuplicatedDatatype = UserDatatype
type DuplicatedDatatype = UserDatatype
The type returned when the datatype is duplicated.
source§fn dup(&self) -> Self::DuplicatedDatatype
fn dup(&self) -> Self::DuplicatedDatatype
Creates a new datatype with the same key-values as this datatype. Read more
impl<'a> Copy for DatatypeRef<'a>
impl<'a> Datatype for DatatypeRef<'a>
impl<'a> MatchesRaw for DatatypeRef<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for DatatypeRef<'a>
impl<'a> !Send for DatatypeRef<'a>
impl<'a> !Sync for DatatypeRef<'a>
impl<'a> Unpin for DatatypeRef<'a>
impl<'a> UnwindSafe for DatatypeRef<'a>
Blanket Implementations§
source§impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
source§fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
Convert the given value into an approximately equivalent representation.
source§impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
§type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
The error type produced by a failed conversion.
source§fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
Convert the subject into an approximately equivalent representation.
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T, Dst> ConvAsUtil<Dst> for T
impl<T, Dst> ConvAsUtil<Dst> for T
source§impl<T> ConvUtil for T
impl<T> ConvUtil for T
source§fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
Approximate the subject to a given type with the default scheme.
source§fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>
Approximate the subject to a given type with a specific scheme.