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 e6f438ecded..c965aedbc5d 100644 --- a/src/libcollections/string.rs +++ b/src/libcollections/string.rs @@ -849,6 +849,7 @@ impl<'a> Add<&'a str> for String { } } +#[stable] impl ops::Index<ops::Range<uint>> for String { type Output = str; #[inline] @@ -856,6 +857,7 @@ impl ops::Index<ops::Range<uint>> for String { &self[][*index] } } +#[stable] impl ops::Index<ops::RangeTo<uint>> for String { type Output = str; #[inline] @@ -863,6 +865,7 @@ impl ops::Index<ops::RangeTo<uint>> for String { &self[][*index] } } +#[stable] impl ops::Index<ops::RangeFrom<uint>> for String { type Output = str; #[inline] @@ -870,6 +873,7 @@ impl ops::Index<ops::RangeFrom<uint>> for String { &self[][*index] } } +#[stable] impl ops::Index<ops::FullRange> for String { type Output = str; #[inline] |
