#next #increment #value #nextafter

macro next_macros

Macros for next

1 unstable release

Uses new Rust 2024

new 0.1.0 May 3, 2025

#959 in Math


Used in next

MIT/Apache

10KB
208 lines

next

Crates.io MIT/Apache 2.0 Crates.io

next is a crate that provides a trait that gets the next value. That value is the next in the sequence implied by PartialOrd.

Usage

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().

License

next is dual-licensed under MIT and Apache 2.0 at your option.

Contributing

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.

Dependencies

~200–630KB
~15K SLoC