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
use crate::emit_traits;
use newer_type::target;

emit_traits! {
    #[target(alternative = ::std::task::Wake)]
    pub trait Wake {
        fn wake(self: ::std::sync::Arc<Self>);
        fn wake_by_ref(self: &::std::sync::Arc<Self>);
    }
}