Trait FromRaw

Source
pub trait FromRaw: AsRaw {
    // Required method
    unsafe fn from_raw(handle: <Self as AsRaw>::Raw) -> Self;
}
Expand description

Conversion for the Rust type from the raw MPI handle type.

Required Methods§

Source

unsafe fn from_raw(handle: <Self as AsRaw>::Raw) -> Self

Constructs the Rust type, with all its semantics, from the raw MPI type.

§Safety

handle may be assumed to be a live MPI object.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§