pub fn to_success_return_values<T>(
values: impl IntoIterator<Item = T>,
tag: impl Into<Tag>,
) -> Result<Vec<ReturnValue>, Error>where
T: Serialize,
Expand description
Convenience function that takes an iterator over values and turns them into
a Vec<ReturnValue>
(all successful). This is necessary for the return
signatures of most functions in the nu_plugin::Plugin
trait.