Skip to main content

transform

Function transform 

Source
pub fn transform<F>(f: F, spec: impl Into<Spec>) -> Node
where F: Fn(Value, &mut State<'_>) -> Value + Send + Sync + 'static,
Expand description

A valid value is replaced with a function of it.