Range

Type Alias Range 

Source
pub type Range = Range<usize>;
Expand description

A range literal, equivalent to the interval [start, end).

Aliased Type§

pub struct Range {
    pub start: usize,
    pub end: usize,
}

Fields§

§start: usize

The lower bound of the range (inclusive).

§end: usize

The upper bound of the range (exclusive).

Trait Implementations§

Source§

impl TryFrom<&RangeExpr> for Range

Source§

type Error = InvalidExprError

The type returned in the event of a conversion error.
Source§

fn try_from(expr: &RangeExpr) -> Result<Self, InvalidExprError>

Performs the conversion.