musli_common/int/
mod.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//! Traits and utilities for dealing with integers.
//!
//! In particular the [Signed] and [Unsigned] traits are defined in here which
//! allows for musli to work over signed and unsigned numbers generically.
//!
//! We also have a 7-bit [continuation] encoding, and [zigzag] encoding which
//! are based on these.

#[doc(hidden)]
pub mod continuation;
mod encoding;
mod traits;
#[doc(hidden)]
pub mod zigzag;

#[doc(hidden)]
pub use self::encoding::{
    decode_signed, decode_unsigned, decode_usize, encode_signed, encode_unsigned, encode_usize,
};
#[doc(hidden)]
pub use self::traits::{Signed, Unsigned, UnsignedOps};

#[cfg(test)]
mod tests;