File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1616//! `downcast_ref` methods, to test if the contained value is of a given type,
1717//! and to get a reference to the inner value as a type. As `&mut Any`, there
1818//! is also the `downcast_mut` method, for getting a mutable reference to the
19- //! inner value. `Box<Any>` adds the `move` method, which will unwrap a
20- //! `Box<T>` from the object. See the extension traits (`*Ext`) for the full
21- //! details.
19+ //! inner value. `Box<Any>` adds the `downcast` method, which attempts to
20+ //! convert to a `Box<T>`. See the [`Box`] documentation for the full details.
2221//!
2322//! Note that &Any is limited to testing whether a value is of a specified
2423//! concrete type, and cannot be used to test whether a type implements a trait.
2524//!
25+ //! [`Box`]: ../boxed/struct.Box.html
26+ //!
2627//! # Examples
2728//!
2829//! Consider a situation where we want to log out a value passed to a function.
You can’t perform that action at this time.
0 commit comments