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
Any itself can be used to get a TypeId, and has more features when used as a trait object. As &Any (a borrowed trait object), it has the is and as_ref methods, to test if the contained value is of a given type, and to get a reference to the inner value as a type. As &mut Any, there is also the as_mut method, for getting a mutable reference to the inner value.
Shouldn't the as_ref/as_mut methods mentioned be infact downcast_ref/downcast_mut methods? Can't find any as_ref/as_mut method implementations for the Any trait anywhere.