| Crates.io | suffixes |
| lib.rs | suffixes |
| version | 0.3.1 |
| created_at | 2025-06-28 18:21:46.620715+00 |
| updated_at | 2025-12-09 17:17:35.984262+00 |
| description | Cast primitive type and wrap Option/Result using suffix. Like 2.some(), 2.u8(). |
| homepage | https://github.com/navneetankur/suffixes |
| repository | https://github.com/navneetankur/suffixes |
| max_upload_size | |
| id | 1730034 |
| size | 29,754 |
use suffixes::{WrappedOption, WrappedResult};
use suffixes::CastIt;
let three = 3;
assert_eq!(three.u8(), three as u8);
assert_eq!(4.u8(), 4 as u8);
assert_eq!(4.some(), Some(4));