dyn_shim 0.2.0

Generate dyn-compatible shim traits
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use dyn_shim::dyn_shim;

// `#[dyn_shim(...)]` helper attributes are only supported on methods; on any
// other trait item the macro rejects them directly.
#[dyn_shim(Dyn)]
trait Src {
    #[dyn_shim(skip)]
    const LIMIT: usize;
    fn keep(&self) -> i32;
}

fn main() {}