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