[][src]Function sfwtools::counting::wc_lines_file

pub fn wc_lines_file(f_in: &File) -> Result<usize, Error>

In Chapter 1, page 15 of Software Tools, the authors discuss the hazards of boundary conditions in programming. Certainly this is still a problem in Rust, but using Rust's functional programming facilities, and types can help to greatly reduce the occurrence of such errors.