bors
70972832b3
auto merge of #16020 : nham/rust/ringbuf_hash_ord, r=alexcrichton
...
cc #15294
2014-07-27 19:06:16 +00:00
nham
e7b41caba8
Implement Hash for tuples of up to arity 12. Also change the style to be consistent with core::tuple
2014-07-27 14:41:33 -04:00
Jonas Hietala
58d3f109f8
doc: Small rewording.
2014-07-27 20:02:06 +02:00
nham
9fa4424b71
Hash the length of the RingBuf before hashing elements
2014-07-27 12:37:32 -04:00
Jonas Hietala
53c639184c
doc: Main example for TreeMap.
2014-07-27 18:19:04 +02:00
Jonas Hietala
8c34a97b37
doc: TreeMap methods with examples.
...
Small corrections for TreeSet examples.
2014-07-27 17:44:07 +02:00
Jonas Hietala
034ef079ef
doc: TreeSet methods and main example.
2014-07-27 17:04:44 +02:00
bors
d114ddac03
auto merge of #15963 : nham/rust/moar_15294, r=alexcrichton
...
Implements PartialEq/Eq/Clone/Hash/FromIterator/Extendable for SmallIntMap and Clone/Show for TrieMap/TrieSet. cc #15294
2014-07-27 06:16:14 +00:00
nham
6361577808
Implement PartialOrd for RingBuf
2014-07-26 23:18:56 -04:00
nham
1cfa6569f9
Implement Hash for RingBuf
2014-07-26 22:33:47 -04:00
nham
fadbc0b88b
Manually implement Hash for SmallIntMap
2014-07-26 18:47:33 -04:00
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
3f1c37e96d
Small fixes for tests
2014-07-26 12:06:52 -04:00
nham
b2e81d1618
Fix a typo in SmallIntMap documentation
2014-07-25 21:40:47 -04:00
nham
1e997d62b7
Implement PartialEq/Eq/Clone/Hash/FromIterator/Extendable for SmallIntMap and Show/Clone for TrieMap and TrieSet
2014-07-25 21:34:01 -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