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
/*
* SPDX-FileCopyrightText: 2023 Sebastiano Vigna
* SPDX-FileCopyrightText: 2025 Tommaso Fontana
*
* SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
*/
//! Helpers and statistics.
//!
//! [`CountBitReader`] and [`CountBitWriter`] keep track of the number
//! of bits read or written to a [`BitRead`](crate::traits::BitRead)
//! and [`BitWrite`](crate::traits::BitWrite), respectively,
//! optionally printing on standard error the operations performed on the stream.
//!
//! [`DbgBitReader`] and [`DbgBitWriter`] print on standard error all
//! operations performed by a [`BitRead`](crate::traits::BitRead) or
//! [`BitWrite`](crate::traits::BitWrite).
//!
//! [`CodesStats`] keeps track of the space needed to store a stream of
//! integers using different codes.
//!
//! With the `implied` feature, it also provides
//! `sample_implied_distribution`, an infinite iterator that returns samples
//! from the implied distribution of a code, and the helper function
//! `get_implied_distribution`.
//!
//! [`FindChangePoints`] finds, using exponential search, the points where a
//! non-decreasing monotonic function changes value.
pub use *;
pub use *;
pub use *;
pub use *;
pub use CodesStats;
pub use CodesStatsWrapper;