mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
parent
1db4b12494
commit
db62921159
@ -115,6 +115,11 @@ use crate::intrinsics;
|
||||
pub trait Any: 'static {
|
||||
/// Gets the `TypeId` of `self`.
|
||||
///
|
||||
/// If called on a `dyn Any` trait object
|
||||
/// (or a trait object of a subtrait of `Any`),
|
||||
/// this returns the `TypeId` of the underlying
|
||||
/// concrete type, not that of `dyn Any` itself.
|
||||
///
|
||||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
|
Loading…
Reference in New Issue
Block a user