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§

source

type Inner

The inner type.

Required Methods§

source

fn into_inner(self) -> Self::Inner

Converts the newtype to its inner type.

Implementors§