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
If you have a reference b_ref: &B, and B is a subclass of A, it would sometimes be useful to have an &A in order to pass into APIs which expect a &A. Experiments suggest that this is ergonomic using AsRef, at least for constant references (not so much for pinned mutable references).