Struct rant::RantRange [−][src]
pub struct RantRange { /* fields omitted */ }
Implementations
impl RantRange
[src]
impl RantRange
[src]pub fn start(&self) -> i64
[src]
Gets the start bound of the range.
pub fn end(&self) -> i64
[src]
Gets the end bound of the range.
pub fn abs_step(&self) -> u64
[src]
Gets the absolute step value of the range.
pub fn step(&self) -> i64
[src]
Gets the signed step value of the range.
pub fn abs_size(&self) -> usize
[src]
Gets the absolute difference between the start and end bounds, ignoring the step size.
pub fn len(&self) -> usize
[src]
Gets the total number of steps in the range, taking into account the step size.
pub fn reversed(&self) -> Self
[src]
Gets a reversed copy of the range.
pub fn is_empty(&self) -> bool
[src]
Indicates whether there are no steps in the range.
pub fn get(&self, index: usize) -> Option<i64>
[src]
Gets the nth value in the range.
pub fn sliced(&self, from: Option<usize>, to: Option<usize>) -> Option<Self>
[src]
pub fn to_list(&self) -> RantList
[src]
Enumerates the values of the range and returns the results as a Rant list
object.
Trait Implementations
impl StructuralPartialEq for RantRange
[src]
impl StructuralPartialEq for RantRange
[src]Auto Trait Implementations
impl RefUnwindSafe for RantRange
impl RefUnwindSafe for RantRange
impl UnwindSafe for RantRange
impl UnwindSafe for RantRange