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
41
42
43
44
45
46
47
48
49
//! Type prefixes/identities used within the marshall and unmarshall processes - Returned in errors.

#[derive(Debug, Clone, PartialOrd, PartialEq)]
#[doc(inline)]
/// Identities for numerical values.
pub enum NumberIdent {
    Bit,
    Unsigned8,
    Signed8,
    Unsigned16,
    Signed16,
    Unsigned32,
    Signed32,
    Unsigned64,
    Signed64,
    Unsigned128,
    Signed128,
    Float32,
    Float64
}

#[derive(Debug, Clone, PartialOrd, PartialEq)]
#[doc(inline)]
/// Identities for primitive values.
pub enum ValueIdent {
    Null,
    Boolean,
    String,
    Char,
    Number(NumberIdent),
    Bytes,
    UUID
}

#[derive(Debug, Clone, PartialOrd, PartialEq)]
#[doc(inline)]
/// Identities for elements.
pub enum ElementIdent {
    Unit,
    Value,
    Some,
    None,
    Variant,
    Struct,
    List,
    Array,
    Map,
    Compression
}