to_boxed 0.1.1

This crate defines ToBoxed Trait and its derive
Documentation
  • Coverage
  • 0%
    0 out of 3 items documented0 out of 2 items with examples
  • Size
  • Source code size: 3.15 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 244.96 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • PiyushXCoder/to_boxed
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • PiyushXCoder

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();
}