| Crates.io | toto |
| lib.rs | toto |
| version | 1.1.0 |
| created_at | 2023-04-10 07:40:35.149911+00 |
| updated_at | 2025-11-17 09:28:57.846802+00 |
| description | This crate provides a simple conversion method between basic numerical types |
| homepage | https://github.com/zredb/toto |
| repository | https://github.com/zredb/toto |
| max_upload_size | |
| id | 834913 |
| size | 137,117 |
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:
let v_u16=u8tou16(1u8)
let v_u16=1u8.tou16()