fix broken trait method links
This commit is contained in:
parent
e0822ecdbc
commit
98232ece14
6 changed files with 11 additions and 13 deletions
|
@ -168,8 +168,6 @@ pub trait Write {
|
||||||
/// This method should generally not be invoked manually, but rather through
|
/// This method should generally not be invoked manually, but rather through
|
||||||
/// the [`write!`] macro itself.
|
/// the [`write!`] macro itself.
|
||||||
///
|
///
|
||||||
/// [`write!`]: ../../std/macro.write.html
|
|
||||||
///
|
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
|
|
|
@ -149,7 +149,7 @@ pub trait DoubleEndedIterator: Iterator {
|
||||||
/// This is the reverse version of [`try_fold()`]: it takes elements
|
/// This is the reverse version of [`try_fold()`]: it takes elements
|
||||||
/// starting from the back of the iterator.
|
/// starting from the back of the iterator.
|
||||||
///
|
///
|
||||||
/// [`try_fold()`]: trait.Iterator.html#method.try_fold
|
/// [`try_fold()`]: Iterator::try_fold
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
|
@ -214,7 +214,7 @@ pub trait DoubleEndedIterator: Iterator {
|
||||||
/// Folding is useful whenever you have a collection of something, and want
|
/// Folding is useful whenever you have a collection of something, and want
|
||||||
/// to produce a single value from it.
|
/// to produce a single value from it.
|
||||||
///
|
///
|
||||||
/// [`fold()`]: trait.Iterator.html#method.fold
|
/// [`fold()`]: Iterator::fold
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
|
|
|
@ -2713,7 +2713,7 @@ pub trait Iterator {
|
||||||
/// This is useful when you have an iterator over `&T`, but you need an
|
/// This is useful when you have an iterator over `&T`, but you need an
|
||||||
/// iterator over `T`.
|
/// iterator over `T`.
|
||||||
///
|
///
|
||||||
/// [`clone`]: crate::clone::Clone::clone
|
/// [`clone`]: Clone::clone
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
|
|
|
@ -3219,7 +3219,7 @@ pub unsafe trait SliceIndex<T: ?Sized>: private_slice_index::Sealed {
|
||||||
/// Calling this method with an out-of-bounds index or a dangling `slice` pointer
|
/// Calling this method with an out-of-bounds index or a dangling `slice` pointer
|
||||||
/// is *[undefined behavior]* even if the resulting reference is not used.
|
/// is *[undefined behavior]* even if the resulting reference is not used.
|
||||||
///
|
///
|
||||||
/// [undefined behavior]: ../../reference/behavior-considered-undefined.html
|
/// [undefined behavior]: https://doc.rust-lang.org/reference/behavior-considered-undefined.html
|
||||||
#[unstable(feature = "slice_index_methods", issue = "none")]
|
#[unstable(feature = "slice_index_methods", issue = "none")]
|
||||||
unsafe fn get_unchecked(self, slice: *const T) -> *const Self::Output;
|
unsafe fn get_unchecked(self, slice: *const T) -> *const Self::Output;
|
||||||
|
|
||||||
|
@ -3228,7 +3228,7 @@ pub unsafe trait SliceIndex<T: ?Sized>: private_slice_index::Sealed {
|
||||||
/// Calling this method with an out-of-bounds index or a dangling `slice` pointer
|
/// Calling this method with an out-of-bounds index or a dangling `slice` pointer
|
||||||
/// is *[undefined behavior]* even if the resulting reference is not used.
|
/// is *[undefined behavior]* even if the resulting reference is not used.
|
||||||
///
|
///
|
||||||
/// [undefined behavior]: ../../reference/behavior-considered-undefined.html
|
/// [undefined behavior]: https://doc.rust-lang.org/reference/behavior-considered-undefined.html
|
||||||
#[unstable(feature = "slice_index_methods", issue = "none")]
|
#[unstable(feature = "slice_index_methods", issue = "none")]
|
||||||
unsafe fn get_unchecked_mut(self, slice: *mut T) -> *mut Self::Output;
|
unsafe fn get_unchecked_mut(self, slice: *mut T) -> *mut Self::Output;
|
||||||
|
|
||||||
|
|
|
@ -196,7 +196,7 @@ pub trait MetadataExt {
|
||||||
fn st_atime(&self) -> i64;
|
fn st_atime(&self) -> i64;
|
||||||
/// Returns the last access time of the file, in nanoseconds since [`st_atime`].
|
/// Returns the last access time of the file, in nanoseconds since [`st_atime`].
|
||||||
///
|
///
|
||||||
/// [`st_atime`]: #tymethod.st_atime
|
/// [`st_atime`]: Self::st_atime
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
|
@ -232,7 +232,7 @@ pub trait MetadataExt {
|
||||||
fn st_mtime(&self) -> i64;
|
fn st_mtime(&self) -> i64;
|
||||||
/// Returns the last modification time of the file, in nanoseconds since [`st_mtime`].
|
/// Returns the last modification time of the file, in nanoseconds since [`st_mtime`].
|
||||||
///
|
///
|
||||||
/// [`st_mtime`]: #tymethod.st_mtime
|
/// [`st_mtime`]: Self::st_mtime
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
|
@ -268,7 +268,7 @@ pub trait MetadataExt {
|
||||||
fn st_ctime(&self) -> i64;
|
fn st_ctime(&self) -> i64;
|
||||||
/// Returns the last status change time of the file, in nanoseconds since [`st_ctime`].
|
/// Returns the last status change time of the file, in nanoseconds since [`st_ctime`].
|
||||||
///
|
///
|
||||||
/// [`st_ctime`]: #tymethod.st_ctime
|
/// [`st_ctime`]: Self::st_ctime
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
|
|
|
@ -200,7 +200,7 @@ pub trait MetadataExt {
|
||||||
fn st_atime(&self) -> i64;
|
fn st_atime(&self) -> i64;
|
||||||
/// Returns the last access time of the file, in nanoseconds since [`st_atime`].
|
/// Returns the last access time of the file, in nanoseconds since [`st_atime`].
|
||||||
///
|
///
|
||||||
/// [`st_atime`]: #tymethod.st_atime
|
/// [`st_atime`]: Self::st_atime
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
|
@ -236,7 +236,7 @@ pub trait MetadataExt {
|
||||||
fn st_mtime(&self) -> i64;
|
fn st_mtime(&self) -> i64;
|
||||||
/// Returns the last modification time of the file, in nanoseconds since [`st_mtime`].
|
/// Returns the last modification time of the file, in nanoseconds since [`st_mtime`].
|
||||||
///
|
///
|
||||||
/// [`st_mtime`]: #tymethod.st_mtime
|
/// [`st_mtime`]: Self::st_mtime
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
|
@ -272,7 +272,7 @@ pub trait MetadataExt {
|
||||||
fn st_ctime(&self) -> i64;
|
fn st_ctime(&self) -> i64;
|
||||||
/// Returns the last status change time of the file, in nanoseconds since [`st_ctime`].
|
/// Returns the last status change time of the file, in nanoseconds since [`st_ctime`].
|
||||||
///
|
///
|
||||||
/// [`st_ctime`]: #tymethod.st_ctime
|
/// [`st_ctime`]: Self::st_ctime
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue