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
// Copyright (c) ZeroC, Inc.
//! TODO write a doc comment explaining this crate.
// If the 'alloc' feature is set, pull in [`alloc`](https://doc.rust-lang.org/alloc) as an external crate.
extern crate alloc;
// If the 'std' feature is set, pull in [`std`](https://doc.rust-lang.org/std) as an external crate.
// Even with this feature, parts of the [`prelude`](https://doc.rust-lang.org/std/prelude) are still disabled,
// so we need to fully qualify (or explicitly `use`) some types that would normally be pulled in automatically.
extern crate std;
// These modules are private because they don't export any types, just implementations.
// Re-export the contents of the `error` module directly into the crate root, so they're easier to reference.
pub use *;
/// The smallest value that can be represented as a `varint32`.
pub const VARINT32_MIN: i32 = i32MIN;
/// The largest value that can be represented as a `varint32`.
pub const VARINT32_MAX: i32 = i32MAX;
/// The smallest value that can be represented as a `varuint32`.
pub const VARUINT32_MIN: u32 = u32MIN;
/// The largest value that can be represented as a `varuint32`.
pub const VARUINT32_MAX: u32 = u32MAX;
/// The smallest value that can be represented as a `varint62`.
pub const VARINT62_MIN: i64 = i64MIN >> 2;
/// The largest value that can be represented as a `varint62`.
pub const VARINT62_MAX: i64 = i64MAX >> 2;
/// The smallest value that can be represented as a `varuint62`.
pub const VARUINT62_MIN: u64 = u64MIN >> 2;
/// The largest value that can be represented as a `varuint62`.
pub const VARUINT62_MAX: u64 = u64MAX >> 2;