lzfse_rust 0.2.1

A pure Rust LZFSE library.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
pub trait FlushLimit {
    /// Max number of bytes accessed between flush calls.
    const FLUSH_LIMIT: u32;
}

impl FlushLimit for Vec<u8> {
    const FLUSH_LIMIT: u32 = i32::MAX as u32;
}

impl<T: FlushLimit + ?Sized> FlushLimit for &mut T {
    const FLUSH_LIMIT: u32 = T::FLUSH_LIMIT;
}