about summary refs log tree commit diff
path: root/src/libstd/primitive_docs.rs
AgeCommit message (Collapse)AuthorLines
2016-10-08Use less `size_t` casts in libstd since it's now defined as `usize`Tobias Bucher-1/+1
2016-09-11Tweak array docsKeegan McAllister-21/+65
Fixes #29331.
2016-08-18Fix linksNick Cameron-1/+1
2016-08-17Rollup merge of #35613 - matthew-piziak:array-docs-trait-justification, ↵Jonathan Turner-3/+8
r=steveklabnik provide additional justification for array interface design Explain why Rust does not implement traits for large arrays. Explain why most methods are implemented on slices rather than arrays. Note: I'm dipping my toes in the water with a tiny PR. Especially looking for feedback on wording and style. Points of concern: appropriate level of top-level explanation; foreshadowing (is it appropriate to imply that we expect Rust's type system to eventually support size-generic arrays?); using `Foo` and `Bar` as type variables instead of e.g. `T` and `S`. @peschkaj
2016-08-12provide additional justification for array interface designMatthew Piziak-3/+8
Explain why Rust does not implement traits for large arrays. Explain why most methods are implemented on slices rather than arrays.
2016-08-12Update note to include recommendation to use `.as_slice()`JessRudder-1/+2
2016-08-11Add note to docs for &str that example is to demo internals onlyJessRudder-0/+3
2016-07-08Improve primitive integers documentationGuillaume Gomez-0/+30
2016-06-22Use the correct types in float examplesOliver Middleton-6/+0
2016-06-01Fix broken link name in `bool` documentationMatt Kraai-1/+1
2016-04-06Add `Copy` to the traits that are automatically implemented for tuplesTobias Bucher-2/+4
2016-03-22doc: small char improvementsTshepang Lekhonkhobe-3/+3
2016-03-08doc: Fix a bunch of broken linksAlex Crichton-15/+15
A few categories: * Links into compiler docs were just all removed as we're not generating compiler docs. * Move up one more level to forcibly go to std docs to fix inlined documentation across the facade crates.
2016-03-06Spelling fix for "because"Craig M. Brandenburg-1/+1
2016-02-25Add f32 and f64 examples warningGuillaume Gomez-0/+6
2016-02-24Updated the primitive docs for boolRavi Shankar-1/+44
2016-02-15correct the primitive char doc's use of bytes and code pointsJack O'Connor-21/+11
Previously the docs suggested that '❤️' doesn't fit in a char because it's 6 bytes. But that's misleading. 'a̚' also doesn't fit in a char, even though it's only 3 bytes. The important thing is the number of code points, not the number of bytes. Clarify the primitive char docs around this.
2016-02-09make note of arity and 32-length restrictionSteve Klabnik-0/+6
2016-02-09Properly document tuplesSteve Klabnik-27/+65
Fixes #29339
2015-12-16small fix to str doc exampleSteve Klabnik-1/+1
2015-12-09Fix extra space in str docsSteve Klabnik-1/+1
2015-12-01Auto merge of #30129 - tbu-:pr_doc_arrays_coerce, r=steveklabnikbors-6/+6
Fixes #29993.
2015-12-01Arrays don't dereference but coerce to slicesTobias Bucher-6/+6
Fixes #29993.
2015-11-30Better docs for the str primitiveSteve Klabnik-22/+42
Part of #29338
2015-11-24Fix up docs for charSteve Klabnik-11/+72
Part of https://github.com/rust-lang/rust/issues/29333
2015-11-07Update list of array implementations in src/libstd/primitive_docs.rsOliver Middleton-1/+3
2015-09-30Fix typo in docs: usize is unsigned, not signed.Dato Simó-1/+1
2015-09-11std: Stabilize/deprecate features for 1.4Alex Crichton-2/+0
The FCP is coming to a close and 1.4 is coming out soon, so this brings in the libs team decision for all library features this cycle. Stabilized APIs: * `<Box<str>>::into_string` * `Arc::downgrade` * `Arc::get_mut` * `Arc::make_mut` * `Arc::try_unwrap` * `Box::from_raw` * `Box::into_raw` * `CStr::to_str` * `CStr::to_string_lossy` * `CString::from_raw` * `CString::into_raw` * `IntoRawFd::into_raw_fd` * `IntoRawFd` * `IntoRawHandle::into_raw_handle` * `IntoRawHandle` * `IntoRawSocket::into_raw_socket` * `IntoRawSocket` * `Rc::downgrade` * `Rc::get_mut` * `Rc::make_mut` * `Rc::try_unwrap` * `Result::expect` * `String::into_boxed_slice` * `TcpSocket::read_timeout` * `TcpSocket::set_read_timeout` * `TcpSocket::set_write_timeout` * `TcpSocket::write_timeout` * `UdpSocket::read_timeout` * `UdpSocket::set_read_timeout` * `UdpSocket::set_write_timeout` * `UdpSocket::write_timeout` * `Vec::append` * `Vec::split_off` * `VecDeque::append` * `VecDeque::retain` * `VecDeque::split_off` * `rc::Weak::upgrade` * `rc::Weak` * `slice::Iter::as_slice` * `slice::IterMut::into_slice` * `str::CharIndices::as_str` * `str::Chars::as_str` * `str::split_at_mut` * `str::split_at` * `sync::Weak::upgrade` * `sync::Weak` * `thread::park_timeout` * `thread::sleep` Deprecated APIs * `BTreeMap::with_b` * `BTreeSet::with_b` * `Option::as_mut_slice` * `Option::as_slice` * `Result::as_mut_slice` * `Result::as_slice` * `f32::from_str_radix` * `f64::from_str_radix` Closes #27277 Closes #27718 Closes #27736 Closes #27764 Closes #27765 Closes #27766 Closes #27767 Closes #27768 Closes #27769 Closes #27771 Closes #27773 Closes #27775 Closes #27776 Closes #27785 Closes #27792 Closes #27795 Closes #27797
2015-07-27Show appropriate feature flags in docsSteve Klabnik-1/+2
2015-07-20Address feedbackBrian Anderson-15/+15
2015-07-20std: Create separate docs for the primitivesBrian Anderson-0/+420
Having the primitive and module docs derived from the same source causes problems, primarily that they can't contain hyperlinks cross-referencing each other. This crates dedicated private modules in `std` to document the primitive types, then for all primitives that have a corresponding module, puts hyperlinks in moth the primitive docs and the module docs cross-linking each other. This should help clear up confusion when readers find themselves on the wrong page.