Function warp::filters::path::with_segment

source ยท
fn with_segment<F, U>(route: &mut Route, func: F) -> Result<U, Rejection>
where F: Fn(&str) -> Result<U, Rejection>,