Skip to main content

prompt

Function prompt 

Source
pub fn prompt<F>(cx: &mut Cx, prompt: ControlPrompt, body: F) -> Result<Ref>
where F: FnOnce(&mut Cx) -> Result<Ref>,
Expand description

Run body inside a control prompt, emitting the prompt effect first.