Skip to main content

IntoInner

Trait IntoInner 

Source
pub trait IntoInner {
    type Target;

    // Required method
    fn into_inner(self) -> Self::Target;
}
Expand description

Trait representing the conversion of a type into its inner type.

Required Associated Types§

Source

type Target

The inner type.

Required Methods§

Source

fn into_inner(self) -> Self::Target

Returns the inner type consuming the original value.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl IntoInner for Complex<f64>

Implement the IntoInner trait for the Complex<f64> type.

Source§

type Target = (f64, f64)

The inner type of the Complex<f64> type.

Source§

fn into_inner(self) -> Self::Target

Convert the Complex<f64> type into its inner type (f64, f64) corresponding to the real and imaginary part.

Implementors§