Trait IntoRange

Source
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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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§