toto

Crates.iototo
lib.rstoto
version1.1.0
created_at2023-04-10 07:40:35.149911+00
updated_at2025-11-17 09:28:57.846802+00
descriptionThis crate provides a simple conversion method between basic numerical types
homepagehttps://github.com/zredb/toto
repositoryhttps://github.com/zredb/toto
max_upload_size
id834913
size137,117
zredb (zredb)

documentation

README

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()
Commit count: 5

cargo fmt