Expand description
Readline for Rust
This implementation is based on Antirez’s Linenoise
§Example
Usage
let mut rl = tcalc_rustyline::Editor::<()>::new();
let readline = rl.readline(">> ");
match readline {
Ok(line) => println!("Line: {:?}",line),
Err(_) => println!("No input"),
}
Re-exports§
pub use config::CompletionType;
pub use config::Config;
pub use config::HistoryDuplicates;
Modules§
- Completion API
- Customize line editor
- Contains error type for handling I/O and Errno errors
- History API
- Line buffer with current cursor position
Structs§
- Line editor
Type Aliases§
- The error type for I/O and Linux Syscalls (Errno)