We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
<dyn Any as Any>::type_id()
1 parent a24a27f commit 12cbe55Copy full SHA for 12cbe55
library/core/src/any.rs
@@ -115,6 +115,11 @@ use crate::intrinsics;
115
pub trait Any: 'static {
116
/// Gets the `TypeId` of `self`.
117
///
118
+ /// If called on a `dyn Any` trait object
119
+ /// (or a trait object of a subtrait of `Any`),
120
+ /// this returns the `TypeId` of the underlying
121
+ /// concrete type, not that of `dyn Any` itself.
122
+ ///
123
/// # Examples
124
125
/// ```
0 commit comments