pub struct IntegerRange { /* private fields */ }Expand description
An integer range value provider.
Efficiently provides a contiguous range of integers without storing them.
Implementations§
Source§impl IntegerRange
impl IntegerRange
pub fn new(start: i64, end: i64) -> Self
pub fn from_zero(n: i64) -> Self
Sourcepub fn value_range_type(&self) -> ValueRangeType
pub fn value_range_type(&self) -> ValueRangeType
Returns the ValueRangeType describing this range.
An IntegerRange is a countable range with known bounds.
Trait Implementations§
Source§impl<S> ValueRangeProvider<S, i32> for IntegerRange
impl<S> ValueRangeProvider<S, i32> for IntegerRange
Auto Trait Implementations§
impl Freeze for IntegerRange
impl RefUnwindSafe for IntegerRange
impl Send for IntegerRange
impl Sync for IntegerRange
impl Unpin for IntegerRange
impl UnsafeUnpin for IntegerRange
impl UnwindSafe for IntegerRange
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more