fixedbitset

Trait IndexRange

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

IndexRange 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> IndexRange<T> for RangeFull

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Implementors§