1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//! Message decoding traits.
//!
//! These traits infer the wire type to decode using the type system.
//!
//! They're intened to be impl'd by `veriform::decoder::Decoder`.
use sequence;
use crate::;
use Digest;
/// Try to decode a field to a value of the given type.
///
/// This trait is intended to be impl'd by the `Decoder` type.
/// Try to decode a field to a reference of the given type.
///
/// This trait is intended to be impl'd by the `Decoder` type.
/// Decode a sequence of values to a [`sequence::Iter`].
///
/// This trait is intended to be impl'd by the `Decoder` type.