Skip to main content

maximum

Function maximum 

Source
pub const fn maximum<T>(value: T) -> UpperBound<T>
Examples found in repository?
examples/basic_usage.rs (line 5)
3fn main() {
4    let lower = exclusive_minimum(0);
5    let upper = maximum(10);
6
7    assert!(lower.allows(&1));
8    assert!(upper.allows(&10));
9}