Rollup merge of #118028 - Jules-Bertholet:dyn-any-doc, r=thomcc
Document behavior of `<dyn Any as Any>::type_id()` See also #57893 `@rustbot` label A-docs T-libs
This commit is contained in:
commit
c3216e2a3a
@ -115,6 +115,11 @@
|
||||
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