portrait 0.3.1

Fills an `impl` with the associated items required by the trait.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#[portrait::make]
trait MyTrait {
    fn with_mut_arg(&self, mut _x: u32) {
        println!("with_mut_arg");
    }
}
struct A {}

impl MyTrait for A {}

struct B {
    inner: A,
}

#[portrait::fill(portrait::delegate(A; self.inner))] // Without this, the panic will not be triggered.
impl MyTrait for B {}