| Crates.io | next |
| lib.rs | next |
| version | 0.2.0 |
| created_at | 2025-05-03 21:42:23.217073+00 |
| updated_at | 2025-05-08 20:48:39.245179+00 |
| description | Provides a trait to get the next sequential value |
| homepage | |
| repository | https://github.com/Seldom-SE/next |
| max_upload_size | |
| id | 1659169 |
| size | 18,488 |
nextnext is a crate that provides a trait that gets the next value. That value is the next in the
sequence implied by PartialOrd.
Add to your Cargo.toml
# Replace * with your desired version
[dependencies]
next = "*"
You can put #[derive(Next)] on your types and get the next value of a type with .next().
next is dual-licensed under MIT and Apache 2.0 at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.