Skip to main content

force_sequence_bounded

Function force_sequence_bounded 

Source
pub fn force_sequence_bounded(
    cx: &mut Cx,
    sequence: &Value,
    max: usize,
    context: &str,
) -> Result<Vec<Value>>
Expand description

Drive a sequence to completion, refusing to exceed max elements.

Pulls up to max elements; if the sequence still has more, fails with context in the message. Guards the sequence organ against unbounded lazy producers.