pub trait RangeExt{
type Idx;
// Required method
fn mv(&self, l: Self::Idx, r: Self::Idx) -> Self;
// Provided method
fn shift(&self, a: Self::Idx) -> Self { ... }
}Expand description
Shift the endpoints of a Range or RangeInclusive by independent
left/right offsets.
Required Associated Types§
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".