We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8d60bf4 + 4194d75 commit f2661cfCopy full SHA for f2661cf
library/core/src/convert/mod.rs
@@ -487,6 +487,7 @@ impl<T: ?Sized, U: ?Sized> const AsRef<U> for &T
487
where
488
T: ~const AsRef<U>,
489
{
490
+ #[inline]
491
fn as_ref(&self) -> &U {
492
<T as AsRef<U>>::as_ref(*self)
493
}
@@ -499,6 +500,7 @@ impl<T: ?Sized, U: ?Sized> const AsRef<U> for &mut T
499
500
501
502
503
504
505
506
@@ -519,6 +521,7 @@ impl<T: ?Sized, U: ?Sized> const AsMut<U> for &mut T
519
521
520
522
T: ~const AsMut<U>,
523
524
525
fn as_mut(&mut self) -> &mut U {
526
(*self).as_mut()
527
0 commit comments