Function magnus::block::yield_values

source ·
pub fn yield_values<T, U>(vals: T) -> Result<U, Error>where
    T: ArgList,
    U: TryConvert,
Expand description

Yields multiple values to the block given to the current method.

Note: A method using yield_values converted to an Enumerator with to_enum/Value::enumeratorize will result in a non-functional Enumerator on versions of Ruby before 3.1. See YieldValues for an alternative.

Panics

Panics if called from a non-Ruby thread.