Struct ::std::ops::RangeFull
Type for a full range expression ..
.
Examples
let range = ..;
assert!(range.contains(-10));
assert!(range.contains(5));
assert!(range.contains(10));
assert!(range.contains(20));
assert!(range is std::ops::RangeFull);
Rust Examples
use rune::runtime::RangeFull;
let _ = RangeFull::new();
Methods
Test if the range contains the given value.
The check is performed using the [PARTIAL_CMP
] protocol.
Examples
let range = ..;
assert!(range.contains(-10));
assert!(range.contains(5));
assert!(range.contains(10));
assert!(range.contains(20));
assert!(range is std::ops::RangeFull);