platform-cast 0.1.0

Platform-specific safe cast.
Documentation
  • Coverage
  • 60%
    3 out of 5 items documented1 out of 4 items with examples
  • Size
  • Source code size: 19.87 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 182.37 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • tyilo/platform-cast
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • tyilo

platform-cast Latest Version API Docs

Platform-specific safe cast.

From TryFrom as cast CastFrom
No runtime check
usize <-> u64[^a]
No truncation
No change of sign

[^a]: Assuming a target with a pointer width of 64.