into-this 1.0.0

Convenience method to choose the target type of .into().
Documentation
  • Coverage
  • 25%
    1 out of 4 items documented0 out of 3 items with examples
  • Size
  • Source code size: 1.61 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.03 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 14s Average build duration of successful builds.
  • all releases: 14s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Quelfth/into-this
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Quelfth

Ever been in a situation where you needed x.into() but rust couldn't infer the type? Maybe you tried x.into::<T>() but it didn't work because the generic is in the wrong place? You considered Into::into::<T>(x), but it was really ugly?

With this crate, you can import the [IntoThis] trait, which is implemented for all types, and then use x.into_this::<T>(). So much cleaner!

Also works with try_into: x.try_into_this::<T>()