to_boxed

Crates.ioto_boxed
lib.rsto_boxed
version0.1.1
created_at2025-04-27 17:13:19.512783+00
updated_at2025-04-27 17:22:29.733701+00
descriptionThis crate defines ToBoxed Trait and its derive
homepage
repositoryhttps://github.com/PiyushXCoder/to_boxed
max_upload_size
id1651302
size3,155
Piyush मिश्र: (PiyushXCoder)

documentation

README

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();
}
Commit count: 3

cargo fmt