Module sfwtools::counting[][src]

Structs

Counts

Functions

num_newlines
run_wc_all

Convenience function for running wc in idiomatic fashion (i.e.) errors are printed to user and the program exits.

run_wc_bytes

Convenience function for running wc in idiomatic fashion (i.e.) errors are printed to user and the program exits.

run_wc_lines

Convenience function for running wc in idiomatic fashion (i.e.) errors are printed to user and the program exits.

run_wc_seahorse_action
run_wc_seahorse_cmd
run_wc_words

Convenience function for running wc in idiomatic fashion (i.e.) errors are printed to user and the program exits.

wc_all
wc_all_file
wc_app
wc_bytes
wc_bytes_file
wc_lines
wc_lines_file

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.

wc_words
wc_words_file
word_count