-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathlib.rs
More file actions
26 lines (20 loc) · 558 Bytes
/
lib.rs
File metadata and controls
26 lines (20 loc) · 558 Bytes
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
//! Arithmetic coding library
#![deny(
missing_docs,
missing_debug_implementations,
missing_copy_implementations
)]
pub use arithmetic_coding_core::{BitStore, Model, fixed_length, max_length, one_shot};
mod common;
pub mod decoder;
pub mod encoder;
pub use decoder::Decoder;
pub use encoder::Encoder;
/// Errors that can occur during encoding/decoding
#[derive(Debug, thiserror::Error)]
pub enum Error<E> {
/// Io error when reading/writing bits from a stream
Io(#[from] std::io::Error),
/// Invalid symbol
ValueError(E),
}