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§
Required Methods§
Sourcefn from_inner(inner: Self::Inner) -> Self
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".