Skip to main content

tuple

Function tuple 

Source
pub fn tuple<T>(parsers: T) -> T
Expand description

Identity shim for nom 7’s sequence::tuple, which nom 8 removed.

nom 8 implements Parser for tuples directly, so wrapping is no longer needed – but keeping the call sites spelled tuple((a, b, c)) states the intent, and matches how the WSN productions read in the standard.