Trait len_trait::index::IndexRangesMut
[−]
[src]
pub trait IndexRangesMut<Idx>: IndexMut<Range<Idx>> + IndexMut<RangeTo<Idx>> + IndexMut<RangeFrom<Idx>> + IndexMut<RangeInclusive<Idx>> + IndexMut<RangeToInclusive<Idx>> + IndexMut<RangeFull> + IndexRanges<Idx> { }
Shorthand trait for collections which offer consistent, mutable slicing.
Here, "consistent" means that indexing is implemented for all of the Range
types from the
standard library, and the type returned by each of the slices is always the same.
Implementors
impl<T: ?Sized, Idx> IndexRangesMut<Idx> for T where
T: IndexMut<Range<Idx>>,
T: IndexMut<RangeTo<Idx>>,
T: IndexMut<RangeFrom<Idx>>,
T: IndexMut<RangeInclusive<Idx>>,
T: IndexMut<RangeToInclusive<Idx>>,
T: IndexMut<RangeFull>,
T: IndexRanges<Idx>,