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
48
49
/*
* 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`] and [`BitWrite`], respectively, optionally
//! printing on standard error the operations performed on the stream.
//!
//! [`DbgBitReader`] and [`DbgBitWriter`] print the operations performed by a
//! [`BitRead`] or [`BitWrite`] on standard error (only when the `std` feature
//! is enabled).
//!
//! [`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.
//!
//! [`BitRead`]: crate::traits::BitRead
//! [`BitWrite`]: crate::traits::BitWrite
pub use *;
pub use *;
pub use *;
pub use *;
pub use CodesStats;
pub use CodesStatsWrapper;