We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d12553 commit 879107fCopy full SHA for 879107f
src/libcore/ops/deref.rs
@@ -27,6 +27,7 @@
27
/// # More on `Deref` coercion
28
///
29
/// If `T` implements `Deref<Target = U>`, and `x` is a value of type `T`, then:
30
+///
31
/// * In immutable contexts, `*x` on non-pointer types is equivalent to
32
/// `*Deref::deref(&x)`.
33
/// * Values of type `&T` are coerced to values of type `&U`
@@ -113,6 +114,7 @@ impl<'a, T: ?Sized> Deref for &'a mut T {
113
114
115
/// If `T` implements `DerefMut<Target = U>`, and `x` is a value of type `T`,
116
/// then:
117
118
/// * In mutable contexts, `*x` on non-pointer types is equivalent to
119
120
/// * Values of type `&mut T` are coerced to values of type `&mut U`
0 commit comments