nu_plugin_core::util

Function with_custom_values_in

Source
pub fn with_custom_values_in<E>(
    value: &mut Value,
    f: impl FnMut(Spanned<&mut Box<dyn CustomValue>>) -> Result<(), E>,
) -> Result<(), E>
where E: From<ShellError>,
Expand description

Do something with all CustomValues recursively within a Value. This is not limited to plugin custom values.