File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 16
16
//! `downcast_ref` methods, to test if the contained value is of a given type,
17
17
//! and to get a reference to the inner value as a type. As `&mut Any`, there
18
18
//! 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.
22
21
//!
23
22
//! Note that &Any is limited to testing whether a value is of a specified
24
23
//! concrete type, and cannot be used to test whether a type implements a trait.
25
24
//!
25
+ //! [`Box`]: ../boxed/struct.Box.html
26
+ //!
26
27
//! # Examples
27
28
//!
28
29
//! 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