musli/int/mod.rs
1//! Traits and utilities for dealing with integers.
2//!
3//! In particular the [Signed] and [Unsigned] traits are defined in here which
4//! allows for musli to work over signed and unsigned numbers generically.
5//!
6//! We also have a 7-bit [`continuation`] encoding, and [`zigzag`] encoding which
7//! are based on these.
8
9#![cfg(any(
10 feature = "storage",
11 feature = "wire",
12 feature = "descriptive",
13 feature = "value"
14))]
15
16pub(crate) mod continuation;
17mod encoding;
18mod traits;
19pub(crate) mod zigzag;
20
21pub(crate) use self::encoding::{
22 decode_signed, decode_unsigned, decode_usize, encode_signed, encode_unsigned, encode_usize,
23};
24pub(crate) use self::traits::{Signed, Unsigned, UnsignedOps};
25
26#[cfg(test)]
27mod tests;