Skip to main content

add_handler

Function add_handler 

Source
pub fn add_handler(
    src: &str,
    event: &str,
) -> Result<(String, usize, usize, bool), String>
Expand description

Adds (or finds) the handler for event in src; None when there’s no event match to add an arm to. Returns the new text and the 1-based line/column of the handler’s body (or the existing arm).