externcrate txt_processor;use txt_processor::*;fnmain(){letmut t = TxtProcessor::from_str(String::from("This is text for example!"));
t.replace_word("is","replaced is");assert_eq!(1, t.get_lines());assert_eq!(5, t.get_words());assert_eq!("This replaced is text for example!", t.get_content());}