You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pubtraitBorrowFrom<Sized? Owned> for Sized? {fnborrow_from(owned:&Owned) -> &Self;}
The proposal core::borrow::Borrow simply swaps the type parameters Owned and Self. A: Borrow<T> means it is able to borrow a value typed as T from a value typed as A.
pubtraitBorrow<Sized? T> for Sized? {fnborrow(&self) -> &T;}
This changes BorrowFrom::borrow_from(&x) to x.borrow().