pub trait RangeArgument<T = usize> {
    // Provided methods
    fn start(&self) -> Option<T> { ... }
    fn end(&self) -> Option<T> { ... }
}
Expand description

RangeArgument is implemented by Rust’s built-in range types, produced by range syntax like .., a.., ..b or c..d.

Provided Methods§

source

fn start(&self) -> Option<T>

Start index (inclusive)

source

fn end(&self) -> Option<T>

End index (exclusive)

Implementations on Foreign Types§

source§

impl<T> RangeArgument<T> for RangeFull

source§

impl<T: Copy> RangeArgument<T> for Range<T>

source§

fn start(&self) -> Option<T>

source§

fn end(&self) -> Option<T>

source§

impl<T: Copy> RangeArgument<T> for RangeFrom<T>

source§

fn start(&self) -> Option<T>

source§

impl<T: Copy> RangeArgument<T> for RangeTo<T>

source§

fn end(&self) -> Option<T>

Implementors§