succinct 0.5.2

Succinct data structures for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use std::io::{Error, ErrorKind, Result};

pub fn out_of_bits<A>(who: &str) -> Result<A> {
    Err(Error::new(ErrorKind::UnexpectedEof,
                   format!("{}: could not decode: more bits expected",
                           who)))
}

pub fn too_many_bits<A>(who: &str) -> Result<A> {
    Err(Error::new(ErrorKind::InvalidData,
                   format!("{}: value too big for type", who)))
}