Skip to main content

IntoRNewtype

Trait IntoRNewtype 

Source
pub trait IntoRNewtype {
    type Inner;

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

Unwrap a forwarding newtype into its inner value (Rust → R side).

Emitted by #[derive(IntoR)]. Powers the IntoR container blankets for Option<T> / Vec<Option<T>> in this module.

Required Associated Types§

Source

type Inner

The wrapped inner type, whose conversions are forwarded to.

Required Methods§

Source

fn into_inner(self) -> Self::Inner

Unwrap the newtype into its inner value.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§