1
Fork 0

Move to intra doc links whenever possible within std/src/lib.rs

This commit is contained in:
Alexis Bourget 2020-08-12 23:23:07 +02:00
parent 3df25ae186
commit 3f16597a6a

View file

@ -22,7 +22,7 @@
//! * [`std::*` modules](#modules) //! * [`std::*` modules](#modules)
//! * [Primitive types](#primitives) //! * [Primitive types](#primitives)
//! * [Standard macros](#macros) //! * [Standard macros](#macros)
//! * [The Rust Prelude](prelude/index.html) //! * [The Rust Prelude]
//! //!
//! If this is your first time, the documentation for the standard library is //! If this is your first time, the documentation for the standard library is
//! written to be casually perused. Clicking on interesting things should //! written to be casually perused. Clicking on interesting things should
@ -63,8 +63,8 @@
//! So for example there is a [page for the primitive type //! So for example there is a [page for the primitive type
//! `i32`](primitive.i32.html) that lists all the methods that can be called on //! `i32`](primitive.i32.html) that lists all the methods that can be called on
//! 32-bit integers (very useful), and there is a [page for the module //! 32-bit integers (very useful), and there is a [page for the module
//! `std::i32`](i32/index.html) that documents the constant values [`MIN`] and //! `std::i32`] that documents the constant values [`MIN`] and [`MAX`] (rarely
//! [`MAX`](i32/constant.MAX.html) (rarely useful). //! useful).
//! //!
//! Note the documentation for the primitives [`str`] and [`[T]`][slice] (also //! Note the documentation for the primitives [`str`] and [`[T]`][slice] (also
//! called 'slice'). Many method calls on [`String`] and [`Vec<T>`] are actually //! called 'slice'). Many method calls on [`String`] and [`Vec<T>`] are actually
@ -152,48 +152,35 @@
//! contains further primitive shared memory types, including [`atomic`] and //! contains further primitive shared memory types, including [`atomic`] and
//! [`mpsc`], which contains the channel types for message passing. //! [`mpsc`], which contains the channel types for message passing.
//! //!
//! [I/O]: io/index.html //! [I/O]: io
//! [`MIN`]: i32/constant.MIN.html //! [`MIN`]: i32::MIN
//! [TCP]: net/struct.TcpStream.html //! [`MAX`]: i32::MAX
//! [The Rust Prelude]: prelude/index.html //! [page for the module `std::i32`]: crate::i32
//! [UDP]: net/struct.UdpSocket.html //! [TCP]: net::TcpStream
//! [`Arc`]: sync/struct.Arc.html //! [The Rust Prelude]: prelude
//! [owned slice]: boxed/index.html //! [UDP]: net::UdpSocket
//! [`Cell`]: cell/struct.Cell.html //! [`Arc`]: sync::Arc
//! [`FromStr`]: str/trait.FromStr.html //! [owned slice]: boxed
//! [`HashMap<K, V>`]: collections/struct.HashMap.html //! [`Cell`]: cell::Cell
//! [`Iterator`]: iter/trait.Iterator.html //! [`FromStr`]: str::FromStr
//! [`Mutex`]: sync/struct.Mutex.html //! [`HashMap<K, V>`]: collections::HashMap
//! [`Option<T>`]: option/enum.Option.html //! [`Mutex`]: sync::Mutex
//! [`Rc`]: rc/struct.Rc.html //! [`Option<T>`]: option::Option
//! [`RefCell`]: cell/struct.RefCell.html //! [`Rc`]: rc::Rc
//! [`Result<T, E>`]: result/enum.Result.html //! [`RefCell`]: cell::RefCell
//! [`String`]: string/struct.String.html //! [`Result<T, E>`]: result::Result
//! [`Vec<T>`]: vec/struct.Vec.html //! [`Vec<T>`]: vec::Vec
//! [array]: primitive.array.html //! [`atomic`]: sync::atomic
//! [slice]: primitive.slice.html
//! [`atomic`]: sync/atomic/index.html
//! [`collections`]: collections/index.html
//! [`for`]: ../book/ch03-05-control-flow.html#looping-through-a-collection-with-for //! [`for`]: ../book/ch03-05-control-flow.html#looping-through-a-collection-with-for
//! [`format!`]: macro.format.html //! [`mpsc`]: sync::mpsc
//! [`fs`]: fs/index.html //! [`std::cmp`]: cmp
//! [`io`]: io/index.html //! [`std::slice`]: slice
//! [`iter`]: iter/index.html
//! [`mpsc`]: sync/mpsc/index.html
//! [`net`]: net/index.html
//! [`option`]: option/index.html
//! [`result`]: result/index.html
//! [`std::cmp`]: cmp/index.html
//! [`std::slice`]: slice/index.html
//! [`str`]: primitive.str.html
//! [`sync`]: sync/index.html
//! [`thread`]: thread/index.html
//! [`use std::env`]: env/index.html //! [`use std::env`]: env/index.html
//! [`use`]: ../book/ch07-02-defining-modules-to-control-scope-and-privacy.html //! [`use`]: ../book/ch07-02-defining-modules-to-control-scope-and-privacy.html
//! [crates.io]: https://crates.io //! [crates.io]: https://crates.io
//! [deref-coercions]: ../book/ch15-02-deref.html#implicit-deref-coercions-with-functions-and-methods //! [deref-coercions]: ../book/ch15-02-deref.html#implicit-deref-coercions-with-functions-and-methods
//! [files]: fs/struct.File.html //! [files]: fs::File
//! [multithreading]: thread/index.html //! [multithreading]: thread
//! [other]: #what-is-in-the-standard-library-documentation //! [other]: #what-is-in-the-standard-library-documentation
//! [primitive types]: ../book/ch03-02-data-types.html //! [primitive types]: ../book/ch03-02-data-types.html
//! [rust-discord]: https://discord.gg/rust-lang //! [rust-discord]: https://discord.gg/rust-lang