fix doc links for downcast_unchecked
This commit is contained in:
parent
6f982930ba
commit
25271a5a98
2 changed files with 6 additions and 4 deletions
|
@ -1527,6 +1527,8 @@ impl<A: Allocator> Box<dyn Any, A> {
|
||||||
///
|
///
|
||||||
/// The contained value must be of type `T`. Calling this method
|
/// The contained value must be of type `T`. Calling this method
|
||||||
/// with the incorrect type is *undefined behavior*.
|
/// with the incorrect type is *undefined behavior*.
|
||||||
|
///
|
||||||
|
/// [`downcast`]: Self::downcast
|
||||||
#[inline]
|
#[inline]
|
||||||
#[unstable(feature = "downcast_unchecked", issue = "90850")]
|
#[unstable(feature = "downcast_unchecked", issue = "90850")]
|
||||||
pub unsafe fn downcast_unchecked<T: Any>(self) -> Box<T, A> {
|
pub unsafe fn downcast_unchecked<T: Any>(self) -> Box<T, A> {
|
||||||
|
@ -1584,6 +1586,8 @@ impl<A: Allocator> Box<dyn Any + Send, A> {
|
||||||
///
|
///
|
||||||
/// The contained value must be of type `T`. Calling this method
|
/// The contained value must be of type `T`. Calling this method
|
||||||
/// with the incorrect type is *undefined behavior*.
|
/// with the incorrect type is *undefined behavior*.
|
||||||
|
///
|
||||||
|
/// [`downcast`]: Self::downcast
|
||||||
#[inline]
|
#[inline]
|
||||||
#[unstable(feature = "downcast_unchecked", issue = "90850")]
|
#[unstable(feature = "downcast_unchecked", issue = "90850")]
|
||||||
pub unsafe fn downcast_unchecked<T: Any>(self) -> Box<T, A> {
|
pub unsafe fn downcast_unchecked<T: Any>(self) -> Box<T, A> {
|
||||||
|
@ -1641,6 +1645,8 @@ impl<A: Allocator> Box<dyn Any + Send + Sync, A> {
|
||||||
///
|
///
|
||||||
/// The contained value must be of type `T`. Calling this method
|
/// The contained value must be of type `T`. Calling this method
|
||||||
/// with the incorrect type is *undefined behavior*.
|
/// with the incorrect type is *undefined behavior*.
|
||||||
|
///
|
||||||
|
/// [`downcast`]: Self::downcast
|
||||||
#[inline]
|
#[inline]
|
||||||
#[unstable(feature = "downcast_unchecked", issue = "90850")]
|
#[unstable(feature = "downcast_unchecked", issue = "90850")]
|
||||||
pub unsafe fn downcast_unchecked<T: Any>(self) -> Box<T, A> {
|
pub unsafe fn downcast_unchecked<T: Any>(self) -> Box<T, A> {
|
||||||
|
|
|
@ -265,8 +265,6 @@ impl dyn Any {
|
||||||
|
|
||||||
/// Returns a reference to the inner value as type `dyn T`.
|
/// Returns a reference to the inner value as type `dyn T`.
|
||||||
///
|
///
|
||||||
/// For a safe alternative see [`downcast_ref`].
|
|
||||||
///
|
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
|
@ -295,8 +293,6 @@ impl dyn Any {
|
||||||
|
|
||||||
/// Returns a mutable reference to the inner value as type `dyn T`.
|
/// Returns a mutable reference to the inner value as type `dyn T`.
|
||||||
///
|
///
|
||||||
/// For a safe alternative see [`downcast_mut`].
|
|
||||||
///
|
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue