Function magnus::block::yield_value
source · pub fn yield_value<T, U>(val: T) -> Result<U, Error>where
T: Into<Value>,
U: TryConvert,
Expand description
Yields a value to the block given to the current method.
Note: A method using yield_value
converted to an Enumerator with
to_enum
/Value::enumeratorize
will result in a non-functional
Enumerator. See Yield
for an alternative.