Type Definition calypso_repl::Eval

source ·
pub type Eval<Ctx> = Box<dyn Fn(&mut Ctx, String) -> Option<String>>;
Expand description

A closure that evaluates some input with some context type, and returns either Some(String) or None. None indicates to the REPL handler that it should break the loop.