| Crates.io | to_boxed |
| lib.rs | to_boxed |
| version | 0.1.1 |
| created_at | 2025-04-27 17:13:19.512783+00 |
| updated_at | 2025-04-27 17:22:29.733701+00 |
| description | This crate defines ToBoxed Trait and its derive |
| homepage | |
| repository | https://github.com/PiyushXCoder/to_boxed |
| max_upload_size | |
| id | 1651302 |
| size | 3,155 |
This crate defines ToBoxed Trait and its derive
use to_boxed::ToBoxed;
#[derive(ToBoxed)]
struct Hello {
a: i32,
}
fn say_hello() {
let hello = Hello { a: 1 };
let boxed_hello = hello.to_boxed();
}