bors
ecce58c6fd
auto merge of #15762 : nham/rust/ringbuf_docs, r=alexcrichton
...
This adds examples for get(), get_mut(), swap(), iter() and mut_iter()
2014-07-26 19:16:16 +00:00
nham
ebe8097128
Add examples for RingBuf methods get, get_mut, iter, mut_iter
2014-07-26 13:42:55 -04:00
nham
b2e81d1618
Fix a typo in SmallIntMap documentation
2014-07-25 21:40:47 -04:00
nham
74b1aed0ec
Add methods for obtaining iterators over the keys and values of a TrieMap
2014-07-25 01:14:49 -04:00
nham
0b339e09ab
Add methods for obtaining iterators over the keys and values of a SmallIntMap
2014-07-25 00:48:05 -04:00
nham
18f7b8f201
Add methods for obtaining iterators over the keys and values of a TreeMap
2014-07-25 00:32:42 -04:00
bors
7f2e63ec3f
auto merge of #15945 : treeman/rust/doc-smallint-update, r=alexcrichton
...
Forgot two methods, but @alexcrichton was a bit too quick to accept #15943 , so I made a new PR.
2014-07-24 22:51:10 +00:00
Jonas Hietala
222b780e7a
Document update and update_with_key in SmallIntMap.
...
Move update above for better docs progression.
2014-07-24 16:30:29 +02:00
Jonas Hietala
dff14069c9
Document SmallIntMap with examples.
2014-07-24 07:26:33 -07:00
Jonas Hietala
d93e53e70e
Format documentation for SmallIntMap.
2014-07-24 07:26:32 -07:00
Jonas Hietala
3685945ec1
Main examples for TrieSet and TrieMap.
2014-07-24 07:26:31 -07:00
Jonas Hietala
a524928951
Document TrieSet and TrieMap methods.
2014-07-24 07:26:31 -07:00
Adolfo Ochagavía
8836048c76
Fix deprecation warning in deque.rs
2014-07-24 07:25:48 -07:00
Adolfo Ochagavía
75a0062d88
Add string::raw::from_buf
2014-07-24 07:25:43 -07:00
Adolfo Ochagavía
0fe894e49b
Deprecated String::from_raw_parts
...
Replaced by `string::raw::from_parts`
[breaking-change]
2014-07-24 07:25:43 -07:00
Adolfo Ochagavía
6e509d3462
Deprecated str::raw::from_buf_len
...
Replaced by `string::raw::from_buf_len`
[breaking-change]
2014-07-24 07:25:43 -07:00
Adolfo Ochagavía
feeae27a56
Deprecated str::raw::from_byte
...
Use `string:raw::from_utf8` instead
[breaking-change]
2014-07-24 07:25:43 -07:00
Adolfo Ochagavía
9ec19373af
Deprecated str::raw::from_utf8_owned
...
Replaced by `string::raw::from_utf8`
[breaking-change]
2014-07-24 07:25:43 -07:00
Adolfo Ochagavía
eacc5d779f
Deprecated str::raw::from_c_str
...
Use `string::raw::from_buf` instead
[breaking-change]
2014-07-24 07:25:43 -07:00
Adolfo Ochagavía
ba707fb3a0
Remove OwnedStr trait
...
This trait was only implemented by `String`. It provided the methods
`into_bytes` and `append`, both of which **are already implemented as normal
methods** of `String` (not as trait methods). This change improves the
consistency of strings.
This shouldn't break any code, except if somebody has implemented
`OwnedStr` for a user-defined type.
2014-07-24 07:25:43 -07:00
Jonas Hietala
571692c0ab
Document PriorityQueue.
2014-07-24 11:41:23 +02:00
Jonas Hietala
87ef2f390b
Move contructors to the top of PriorityQueue.
2014-07-24 11:40:22 +02:00
Brian Anderson
71a75cc2ce
Just land already
2014-07-23 13:20:17 -07:00
Brian Anderson
63d1137d68
collections: Tweak docs for push
2014-07-23 13:20:17 -07:00
Brian Anderson
054b1ff989
Remove kludgy imports from vec! macro
2014-07-23 13:20:17 -07:00
Brian Anderson
9db1d35687
collections: Deprecate shift/unshift
...
Use insert/remove instead.
2014-07-23 13:20:16 -07:00
Brian Anderson
94e42c2d89
collections: Make push_back/pop_back default methods
2014-07-23 13:20:16 -07:00
Brian Anderson
7c61bb7213
collections: Move push/pop docs to MutableSeq
2014-07-23 13:20:16 -07:00
Brian Anderson
79a980558b
collections: Deprecate push_back/pop_back
2014-07-23 13:20:16 -07:00
Brian Anderson
d36a8f3f9c
collections: Move push/pop to MutableSeq
...
Implement for Vec, DList, RingBuf. Add MutableSeq to the prelude.
Since the collections traits are in the prelude most consumers of
these methods will continue to work without change.
[breaking-change]
2014-07-23 13:20:10 -07:00
bors
c080d26d32
auto merge of #15902 : nham/rust/hash_triemap, r=alexcrichton
...
cc #15294
2014-07-23 18:11:15 +00:00
bors
826b835813
auto merge of #15749 : vhbit/rust/treemap-doc-fixes, r=alexcrichton
...
1. Removed obsolete comment regarding recursive/iteration implementations of tree_find_with/tree_find_mut_with
2. Replaced easy breakable find_with example with simpler one (which only removes redundant allocation during search)
2014-07-23 14:06:08 +00:00
Valerii Hiora
4a00d4e676
TreeMap examples fixes
...
1. Removed obsolete comment regarding recursive/iteration implementations of tree_find_with/tree_find_mut_with
2. Replaced easy breakable find_with example with simpler one (which only removes redundant allocation during search)
2014-07-23 10:58:46 +03:00
bors
43d84bf32e
auto merge of #15894 : treeman/rust/vec-doc, r=alexcrichton
...
Fill in examples for missing methods. Opt for `vec![]` instead of `vec!()`.
2014-07-22 21:26:14 +00:00
nham
366c66e171
Implement PartialEq, Eq for TrieMap, TrieSet
2014-07-22 17:04:16 -04:00
nham
9e83d29f30
Derive Hash for TrieMap and TrieSet
2014-07-22 16:36:09 -04:00
bors
2ffccb76ce
auto merge of #15857 : treeman/rust/doc-dijkstra-example, r=alexcrichton
...
I wanted to have a slightly larger example compared to the method examples, but I'm unsure how it worked out.
Feedback would nice.
2014-07-22 16:11:14 +00:00
Jonas Hietala
94500b84d4
Main example for priority queue using dijkstra's algorithm.
2014-07-22 16:50:48 +02:00
Jonas Hietala
8d54ec8f4b
doc: Normalize example style
...
Remove unnecessary `use std::vec::Vec`. Use ``` code blocks
with rust as default instead of spelling it out.
2014-07-22 14:06:45 +02:00
Jonas Hietala
eafcf6ba41
doc: Vec::from_raw_parts.
...
Also more explicit raw pointer handling in unsafe examples.
2014-07-22 14:06:45 +02:00
Jonas Hietala
4357da3560
doc: Fill vec documentation with examples.
...
Add more useful functions to main example.
2014-07-22 11:07:49 +02:00
Jonas Hietala
c004bebc9e
doc: Use vec![] instead of vec!() in Vec.
2014-07-22 10:33:26 +02:00
bors
8d43e4474a
auto merge of #15867 : cmr/rust/rewrite-lexer4, r=alexcrichton
2014-07-22 07:16:17 +00:00
Corey Richardson
35c0bf3292
Add a ton of ignore-lexer-test
2014-07-21 18:38:40 -07:00
Corey Richardson
188d889aaf
ignore-lexer-test to broken files and remove some tray hyphens
...
I blame @ChrisMorgan for the hyphens.
2014-07-21 10:59:58 -07:00
Alex Crichton
414862db3c
Test fixes from the rollup
...
Closes #15690 (Guide: improve error handling)
Closes #15729 (Guide: guessing game)
Closes #15751 (repair macro docs)
Closes #15766 (rustc: Print a smaller hash on -v)
Closes #15815 (Add unit test for rlibc)
Closes #15820 (Minor refactoring and features in rustc driver for embedders)
Closes #15822 (rustdoc: Add an --extern flag analagous to rustc's)
Closes #15824 (Document Deque trait and bitv.)
Closes #15832 (syntax: Join consecutive string literals in format strings together)
Closes #15837 (Update LLVM to include NullCheckElimination pass)
Closes #15841 (Rename to_str to to_string)
Closes #15847 (Purge #[!resolve_unexported] from the compiler)
Closes #15848 (privacy: Add publically-reexported foreign item to exported item set)
Closes #15849 (fix string in from_utf8_lossy_100_multibyte benchmark)
Closes #15850 (Get rid of few warnings in tests)
Closes #15852 (Clarify the std::vec::Vec::with_capacity docs)
2014-07-21 10:18:17 -07:00
P1start
37bb6ed302
Clarify the std::vec::Vec docs regarding capacity
2014-07-21 09:55:08 -07:00
Ted Horst
dfacef532d
fix string in from_utf8_lossy_100_multibyte benchmark
2014-07-21 09:55:02 -07:00
Jonas Hietala
2357c443e0
Simplify and cleanup bitv examples.
2014-07-21 09:54:31 -07:00
Jonas Hietala
2957644e08
Describe BitPositions and TwoBitPositions.
2014-07-21 09:54:31 -07:00