Function pomprt::with_multiline

source ·
pub const fn with_multiline<'a, E>(
    editor: E,
    prompt: &'a str,
    multiline: &'a str
) -> Prompt<'a, E> 
where E: Editor,
Expand description

Construct a new Prompt with a custom editor and multiline prompt

Examples found in repository?
examples/parens.rs (line 36)
35
36
37
38
39
fn main() {
    for line in pomprt::with_multiline(LispEditor, ">> ", ".. ") {
        println!("{line}");
    }
}