Skip to main content

truncate_head

Function truncate_head 

Source
pub fn truncate_head(
    input: &str,
    max_lines: usize,
    max_bytes: usize,
) -> TruncationResult
Expand description

Truncate keeping the head (first N lines/bytes). When truncated, writes full output to a temp file.