fidl_data_zither_constants/
constants.rs1#![allow(unused_imports)]
9
10pub const UINT8_ZERO: u8 = 0;
11
12pub const UINT8_MAX_DEC: u8 = 255;
13
14pub const UINT8_MAX_HEX: u8 = 0xff;
15
16pub const INT8_ZERO: i8 = 0;
17
18pub const INT8_MIN_DEC: i8 = -128;
19
20pub const INT8_MIN_HEX: i8 = -0x80;
21
22pub const INT8_MAX_DEC: i8 = 127;
23
24pub const INT8_MAX_HEX: i8 = 0x7f;
25
26pub const UINT16_ZERO: u16 = 0;
27
28pub const UINT16_MAX_DEC: u16 = 65535;
29
30pub const UINT16_MAX_HEX: u16 = 0xffff;
31
32pub const INT16_ZERO: i16 = 0;
33
34pub const INT16_MIN_DEC: i16 = -32768;
35
36pub const INT16_MIN_HEX: i16 = -0x8000;
37
38pub const INT16_MAX_DEC: i16 = 32767;
39
40pub const INT16_MAX_HEX: i16 = 0x7fff;
41
42pub const UINT32_ZERO: u32 = 0;
43
44pub const UINT32_MAX_DEC: u32 = 4294967295;
45
46pub const UINT32_MAX_HEX: u32 = 0xffffffff;
47
48pub const INT32_ZERO: i32 = 0;
49
50pub const INT32_MIN_DEC: i32 = -2147483648;
51
52pub const INT32_MIN_HEX: i32 = -0x80000000;
53
54pub const INT32_MAX_DEC: i32 = 2147483647;
55
56pub const INT32_MAX_HEX: i32 = 0x7fffffff;
57
58pub const UINT64_ZERO: u64 = 0;
59
60pub const UINT64_MAX_DEC: u64 = 18446744073709551615;
61
62pub const UINT64_MAX_HEX: u64 = 0xffffffffffffffff;
63
64pub const INT64_ZERO: i64 = 0;
65
66pub const INT64_MIN_DEC: i64 = -9223372036854775808;
67
68pub const INT64_MIN_HEX: i64 = -0x8000000000000000;
69
70pub const INT64_MAX_DEC: i64 = 9223372036854775807;
71
72pub const INT64_MAX_HEX: i64 = 0x7fffffffffffffff;
73
74pub const FALSE: bool = false;
75
76pub const TRUE: bool = true;
77
78pub const EMPTY_STRING: &str = "";
79
80pub const BYTE_ZERO: u8 = 0;
81
82pub const BINARY_VALUE: u8 = 0b10101111;
83
84pub const LOWERCASE_HEX_VALUE: u64 = 0x1234abcd5678ffff;
85
86pub const UPPERCASE_HEX_VALUE: u64 = 0x1234ABCD5678FFFF;
87
88pub const LEADING_ZEROES_HEX_VALUE: u32 = 0x00000011;
89
90pub const LEADING_ZEROES_DEC_VALUE: u32 = 0000000017;
91
92pub const LEADING_ZEROES_BINARY_VALUE: u32 = 0b0000000000010001;
93
94pub const BITWISE_OR_VALUE: u8 = 15; pub const NONEMPTY_STRING: &str = "this is a constant";
97
98pub const DEFINITION_FROM_ANOTHER_CONSTANT: &str = NONEMPTY_STRING;
99
100pub const BITWISE_OR_OF_OTHER_CONSTANTS: u8 = 175; pub const CONSTANT_ONE_LINE_COMMENT: bool = true;
104
105pub const CONSTANT_MANY_LINE_COMMENT: &str = "";