diff options
Diffstat (limited to 'src/libcollections/string.rs')
| -rw-r--r-- | src/libcollections/string.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libcollections/string.rs b/src/libcollections/string.rs index 5d35d8a8679..4a73757baf9 100644 --- a/src/libcollections/string.rs +++ b/src/libcollections/string.rs @@ -848,6 +848,7 @@ impl<'a> Add<&'a str> for String { } } +#[stable] impl ops::Index<ops::Range<uint>> for String { type Output = str; #[inline] @@ -855,6 +856,7 @@ impl ops::Index<ops::Range<uint>> for String { &self[][*index] } } +#[stable] impl ops::Index<ops::RangeTo<uint>> for String { type Output = str; #[inline] @@ -862,6 +864,7 @@ impl ops::Index<ops::RangeTo<uint>> for String { &self[][*index] } } +#[stable] impl ops::Index<ops::RangeFrom<uint>> for String { type Output = str; #[inline] @@ -869,6 +872,7 @@ impl ops::Index<ops::RangeFrom<uint>> for String { &self[][*index] } } +#[stable] impl ops::Index<ops::FullRange> for String { type Output = str; #[inline] |
