pub trait IntoRange: Clone {
    // Required method
    fn into_range(self) -> Range<i64>;
}
Expand description

Into i64 range, used for indexing

Required Methods§

source

fn into_range(self) -> Range<i64>

Convert self to range i64, if it is scalar, it gets converted to x..x+1

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl IntoRange for i64

source§

impl IntoRange for Range<i64>

source§

impl IntoRange for RangeFrom<i64>

source§

impl IntoRange for RangeFull

source§

impl IntoRange for RangeInclusive<i64>

source§

impl IntoRange for RangeTo<i64>

source§

impl IntoRange for RangeToInclusive<i64>

Implementors§