pub trait IntoRange: Clone {
// Required method
fn into_range(self) -> Range<i64>;
}
Expand description
Into i64 range, used for indexing
Required Methods§
Sourcefn into_range(self) -> Range<i64>
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.