pub mod anchor;
pub mod blocks;
pub mod file;
pub mod highlight;
pub mod hunks;
pub mod intraline;
pub mod moves;
pub mod scope;
pub mod structure;
pub mod text;
pub use file::{Alignment, CONTEXT, Content, FileDiff, TextDiff, counts};
pub use highlight::{Language, Span, TokenKind, highlight};
pub use hunks::{
Algorithm, DiffLine, Hunk, Whitespace, align, diff_lines, hunks, segments, segments_by,
side_counts,
};
pub use structure::Fallback;
pub use text::{Text, is_binary};
pub(crate) fn sat_u32(n: usize) -> u32 {
u32::try_from(n).unwrap_or(u32::MAX)
}