newer-type-std 0.3.0

Support defining newtype wrapper with inheriting trait implementations
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::emit_traits;
use newer_type::target;

emit_traits! {
    #[implement_of(newer_type_std::process::Termination)]
    #[slot(std::process::ExitCode)]
    #[target(alternative = ::std::process::Termination)]
    pub trait Termination {
        fn report(self) -> ::std::process::ExitCode;
    }
}