honzo-chunks 0.1.1

Honzo ebook chunk types, validation, and analysis
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
pub mod chap;
pub mod covr;
pub mod css;
pub mod font;
pub mod img;
pub mod math;
pub mod sidx;

/// Returns true if the tag is one of the known chunk types.
pub fn is_known_chunk(tag: &[u8; 4]) -> bool {
    matches!(
        tag,
        b"CHAP" | b"IMG_" | b"CSS_" | b"FONT" | b"COVR" | b"COVT" | b"NOTE" | b"SIDX" | b"MATH"
    )
}