Commit Graph

1940 Commits

Author SHA1 Message Date
David Tolnay
6a37472023
Implement ser::Error for the value error 2017-04-14 14:40:37 -07:00
David Tolnay
d10fa2bd86
Keep underscored names out of the documentation 2017-04-14 14:38:58 -07:00
David Tolnay
e722cf8791
Fix some function signatures that rustfmt missed 2017-04-14 14:33:00 -07:00
David Tolnay
bc4205a1d0
Use V as the Visitor parameter 2017-04-14 14:31:29 -07:00
David Tolnay
ea5af417fb
Use access terminology for value deserializers 2017-04-14 14:30:28 -07:00
David Tolnay
c70c364754
Example of IntoDeserializer 2017-04-14 14:24:47 -07:00
David Tolnay
9cda4563c0
Clean up extraneous vertical space 2017-04-14 14:10:55 -07:00
David Tolnay
fc927e0e25
Review deserialize impls 2017-04-14 14:08:11 -07:00
David Tolnay
7915835a93 Merge pull request #879 from serde-rs/size_hint
Simplify size_hint to Option<usize>
2017-04-14 14:07:36 -07:00
David Tolnay
0c5db90de8
Simplify size_hint to Option<usize> 2017-04-14 13:31:46 -07:00
David Tolnay
637332de2d Merge pull request #878 from serde-rs/deserialize_any
Rename Deserializer::deserialize to deserialize_any
2017-04-14 13:04:20 -07:00
David Tolnay
e77e7c4bba
Rename Deserializer::deserialize to deserialize_any 2017-04-14 12:52:57 -07:00
David Tolnay
1798d1af6e Merge pull request #876 from serde-rs/access
Access traits
2017-04-14 12:45:54 -07:00
David Tolnay
31cec05712
Access traits 2017-04-14 12:24:35 -07:00
David Tolnay
f2de0509f5
Whitelist the zero prefixed literals used in array_impls 2017-04-14 12:24:22 -07:00
David Tolnay
26d357e846
Map ser impls should serialize a map 2017-04-14 12:08:26 -07:00
David Tolnay
4e2f08cc7a
Format some where clauses that rustfmt refused to touch 2017-04-13 23:04:53 -07:00
David Tolnay
91a0f248a1
More readable MapDeserializer bounds 2017-04-13 22:59:36 -07:00
David Tolnay
03462b6e39
Update the list of deserializable types 2017-04-13 17:48:39 -07:00
David Tolnay
37f8ea234f
Hyperlink the de module documentation 2017-04-13 17:43:10 -07:00
David Tolnay
3f920f645c
License boilerplate 2017-04-13 17:34:42 -07:00
David Tolnay
a937a06d3e
Add an IgnoredAny example 2017-04-13 17:22:51 -07:00
David Tolnay
dd092dce95
Allow using IgnoredAny as a visitor 2017-04-13 16:53:27 -07:00
David Tolnay
dfea7ec939
This is not a bottleneck 2017-04-13 16:46:38 -07:00
David Tolnay
0e7c027ff1
NonZero is just another deref 2017-04-13 16:44:05 -07:00
David Tolnay
8b6f77095a
Remove redundant cfg 2017-04-13 16:43:03 -07:00
David Tolnay
dbe7d04282
Import Path and PathBuf directly 2017-04-13 16:38:04 -07:00
David Tolnay
fb7964fde7
Clean up serialize_display_bounded_length 2017-04-13 16:36:24 -07:00
David Tolnay
f45b83f0c1
Condense the deref impls 2017-04-13 16:26:30 -07:00
David Tolnay
f28abe8fde
Map impls more like the seq impls 2017-04-13 16:09:53 -07:00
David Tolnay
15faaf8bc3
Condense the tuple impls 2017-04-13 16:01:50 -07:00
David Tolnay
a15636f808
More like the Deserialize impls for sequences 2017-04-13 15:55:34 -07:00
David Tolnay
5d396c4e3b
Condense the array impls 2017-04-13 15:41:26 -07:00
David Tolnay
bdccde5c9b
Simplify serialize impl for String 2017-04-13 15:36:46 -07:00
David Tolnay
7dd01dd54a
This macro serializes a primitive 2017-04-13 15:36:42 -07:00
David Tolnay
e4b21e6caa
Example for serialize_unit 2017-04-13 15:20:09 -07:00
David Tolnay
2afbffa924
Example for serialize_unit_struct 2017-04-13 15:20:01 -07:00
David Tolnay
385f83a7de
Examples and links for Option 2017-04-13 15:16:43 -07:00
David Tolnay
50f5ef2fb6
Condense some serializer imports 2017-04-13 14:54:59 -07:00
David Tolnay
13f273ad74
Examples for the primitive serializer methods 2017-04-13 14:51:39 -07:00
David Tolnay
09bd8287e7
Hyperlink the serialize_entry documentation 2017-04-13 14:27:13 -07:00
David Tolnay
35313257c5
Do not hyperlink first sentence because it shows up in index 2017-04-13 14:23:06 -07:00
David Tolnay
07bce54ad3
Add a collect_map example 2017-04-13 14:21:28 -07:00
David Tolnay
41488252ff
Add a collect_seq example 2017-04-13 14:19:17 -07:00
David Tolnay
8d1f882512
Hyperlink the collect methods 2017-04-13 14:16:28 -07:00
David Tolnay
dec6b67236
Hyperlink the Serializer associated types 2017-04-13 14:02:13 -07:00
David Tolnay
0cf8eadef8
Dynamically sized means something else 2017-04-13 13:56:12 -07:00
David Tolnay
7d16710fb4
Add an example to Serialize 2017-04-13 13:55:51 -07:00
David Tolnay
9253fccf04
Hyperlink the Serialize documentation 2017-04-13 13:55:34 -07:00
David Tolnay
eab771cd1a
Standardize on 80 characters per line
Per Mozilla coding style:
https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Coding_Style
2017-04-13 13:24:47 -07:00