to_boxed 0.1.0

This crate defines ToBoxed Trait to its derive
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
This crate defines ToBoxed Trait to its derive

``` rust

use to_boxed::ToBoxed;

#[derive(ToBoxed)]
struct Hello {
    a: i32,
}

fn say_hello() {
    let hello = Hello { a: 1 };
    let boxed_hello = hello.to_boxed();
}
```