Crate aoutils

Source
Expand description

aoutils is a tiny library I created and published simply to learn how to publish and use my own crates As I learn Rust, I may add more useful functions and this may become an actual useful library.

  • Examples
fn main() {
    let result = aoutils::ensure_newline("alpha");
    assert_eq!(result, "alpha\n");
 
    let result = aoutils::is_alphabetic("alpha");
    assert_eq!(result, true);
}

Functions§

  • Returns a String that ends with a ‘\n’ newline character
  • True if the string is made up solely of alphabetic characters