We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0848d1c commit a168dbaCopy full SHA for a168dba
src/libcollections/string.rs
@@ -1052,6 +1052,7 @@ impl<T: fmt::Display + ?Sized> ToString for T {
1052
1053
#[stable(feature = "rust1", since = "1.0.0")]
1054
impl AsRef<str> for String {
1055
+ #[inline]
1056
fn as_ref(&self) -> &str {
1057
self
1058
}
src/libcore/convert.rs
@@ -173,6 +173,7 @@ impl<T> AsMut<[T]> for [T] {
173
174
175
impl AsRef<str> for str {
176
177
178
179
0 commit comments