about summary refs log tree commit diff
path: root/users/cynthia
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2021-02-09T00·36+0100
committerProfpatsch <mail@profpatsch.de>2021-02-09T01·36+0000
commitfd0d0764ecd67d82fb331074a47a6f8c089b81ce (patch)
tree35504720aa61fa64ae9850ecac532a032240b18b /users/cynthia
parent8ff77f0b9f2c903b5025c8fa961f9c02be02ec9c (diff)
feat(users/Profpatsch/netencode): add dec::{Text,Binary,OneOf} r/2194
`Text` and `Binary` should be self-explaining, they just match on the
primitive and throw an error otherwise.

OneOf is cool, because it allows the user to match on the
result type of decoding `inner`, and give a list of values that should
be allowed as the result type (the associated type `A` in the
`Decoder` trait).

Change-Id: Ia252e25194610555c17c37640a96953142f0a165
Reviewed-on: https://cl.tvl.fyi/c/depot/+/2498
Tested-by: BuildkiteCI
Reviewed-by: Profpatsch <mail@profpatsch.de>
Diffstat (limited to 'users/cynthia')
0 files changed, 0 insertions, 0 deletions