Commit graph

61 commits

Author SHA1 Message Date
orbitz
13888edb4d Add is_ok and is_error, simple predicates for testing a result. This is useful for tests or asserts 2017-01-17 20:09:26 +01:00
Simon Cruanes
13b283a91d remove buffer printers, rename pretty-printers to pp 2016-11-03 18:24:11 +01:00
Roma Sokolov
d4d22b1488 Fixes map_or
~default arg for `map_or`, as well as function, should not depend on the type of error case.
2016-10-04 14:27:34 +03:00
Simon Cruanes
913cfcacea prepare for 0.19 2016-08-22 09:58:09 +02:00
Simon Cruanes
c573f447bc add more generic printers for CCError and CCResult (close #73) 2016-06-19 01:02:06 +02:00
Simon Cruanes
73eecfb10d prepare for 0.17 2016-04-22 23:01:37 +02:00
Simon Cruanes
55a4c7ef7a add Result.{to,of}_err 2016-04-11 20:56:39 +02:00
Simon Cruanes
a2179d4355 prepare for 0.16 2016-02-24 22:08:26 +01:00
Simon Cruanes
16ac701de1 add CCResult.{map_or,get_or} 2016-02-23 14:21:37 +01:00
Simon Cruanes
86f170f213 small rename 2016-02-23 14:19:14 +01:00
Simon Cruanes
02a9639d02 add CCResult, with dependency on result for retrocompat 2016-01-25 21:20:06 +01:00