Trait len_trait::index::IndexRangeMut [] [src]

pub trait IndexRangeMut<Idx>: IndexMut<Range<Idx>> + IndexMut<RangeTo<Idx>> + IndexMut<RangeFrom<Idx>> + IndexMut<RangeFull> + IndexRange<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.

Currently, because inclusive ranges are unstable, and ranges starting with an exclusive bound don't exist, this trait can't be implemented for anything other than str and [T]. Hopefully, this will change in the future.

Implementors