Print Typewriter

Simple learning project for a Rust Library that lets you print strings character by character in a configurable way.

Usage

Typing out "hello" with each character taking 10 milliseconds to be printed

```rust use print_typewriter::{CharDurations, Writer}; use std::time::Duration; use std::collections::HashMap;

let tenmillis = Duration::frommillis(10);

let chatdurations = CharDurations::new(tenmillis, HashMap::new());

Writer::printtyped(&chatdurations, &"hello".to_owned()); ```

Typing "hello world" with each word being typed instantly and each space taking 250 milliesconds

```rust use print_typewriter::{CharDurations, Writer}; use std::time::Duration; use std::collections::HashMap;

let twofiftymillis = Duration::from_millis(250);

let chatdurations = CharDurations::new(Duration::ZERO, HashMap::from([(' ', twofifty_millis)]));

Writer::printtyped(&chatdurations, &"hello".to_owned()); ```