toto 1.1.0

This crate provides a simple conversion method between basic numerical types
Documentation
  • Coverage
  • 98.74%
    236 out of 239 items documented28 out of 208 items with examples
  • Size
  • Source code size: 137.11 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.26 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 11s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • zredb/toto
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • zredb

This library provides methods for converting between numeric types. In Rust, when you need to convert basic numeric types to another type, you need to use the as keyword, for example:

1u8 as u16

This library provides two conversion methods that can provide the same functionality:

  1. In the form of global functions:
let v_u16=u8tou16(1u8)
  1. In the form of methods:
let v_u16=1u8.tou16()