Trait dir_structure::NewtypeToInner
source · pub trait NewtypeToInner {
type Inner;
// Required method
fn into_inner(self) -> Self::Inner;
}Expand description
Trait to use when using the with_newtype attribute.
This is used to convert a newtype to its inner type.
We are using this because we cannot make blanket impls with
From due to the orphan rules.
Required Associated Types§
Required Methods§
sourcefn into_inner(self) -> Self::Inner
fn into_inner(self) -> Self::Inner
Converts the newtype to its inner type.