Struct rant::RantRange [−][src]
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 Clone for RantRange
[src]
impl Debug for RantRange
[src]
impl Default for RantRange
[src]
impl Display for RantRange
[src]
impl PartialEq<RantRange> for RantRange
[src]
impl StructuralPartialEq for RantRange
[src]
Auto Trait Implementations
impl RefUnwindSafe for RantRange
impl Send for RantRange
impl Sync for RantRange
impl Unpin for RantRange
impl UnwindSafe for RantRange
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,