Skip to main content

wrap_selection

Function wrap_selection 

Source
pub fn wrap_selection<R>(
    f: impl Fn(&Value, &[String]) -> R + Send + Sync + 'static,
) -> Arc<dyn Fn(&Value, &[String]) -> Pin<Box<dyn Future<Output = Result<Vec<String>, Error>> + Send>> + Send + Sync> ⓘ
Expand description

Wrap a synchronous target selector into a Selection. The closure may return Vec<String> or Result<Vec<String>> (see IntoSelectionResult).