Skip to main content

FromRNewtype

Trait FromRNewtype 

Source
pub trait FromRNewtype: Sized {
    type Inner;

    // Required method
    fn from_inner(inner: Self::Inner) -> Self;
}
Expand description

Construct a forwarding newtype from its inner value (R → Rust side).

Emitted by #[derive(TryFromSexp)]. Powers the TryFromSexp container blankets for Vec<T> / 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 from_inner(inner: Self::Inner) -> Self

Wrap an inner value into the newtype.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§