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 b701d32 commit 4a33eceCopy full SHA for 4a33ece
src/libcore/convert.rs
@@ -104,7 +104,6 @@ pub const fn identity<T>(x: T) -> T { x }
104
/// If you need to do a costly conversion it is better to implement [`From`] with type
105
/// `&T` or write a custom function.
106
///
107
-///
108
/// `AsRef` has the same signature as [`Borrow`], but `Borrow` is different in few aspects:
109
110
/// - Unlike `AsRef`, `Borrow` has a blanket impl for any `T`, and can be used to accept either
@@ -149,7 +148,6 @@ pub const fn identity<T>(x: T) -> T { x }
149
148
/// let s = "hello".to_string();
150
/// is_hello(s);
151
/// ```
152
153
#[stable(feature = "rust1", since = "1.0.0")]
154
pub trait AsRef<T: ?Sized> {
155
/// Performs the conversion.
0 commit comments