Skip to main content

unwrap_valr

Function unwrap_valr 

Source
pub fn unwrap_valr<T, V>(v: ValX<'_, T, V>) -> ValR<T, V>
Expand description

Convert a value exception ValX into a value result ValR.

This should always succeed when called on results of a main filter. For any other filter, this may not succeed, i.e. panic.

If you are writing a native filter, e.g. f(f1; ...; fn), do not use this function on outputs of fi!

This function will exit the current process if the value exception results from a call to the filter halt. If the std feature is disabled, this function panics instead. In a future jaq 3.0, this function should only be provided if the std feature is enabled.