Skip to main content

capture

Function capture 

Source
pub fn capture<'a>(captures: &'a [Capture], name: &str) -> Option<&'a str>
Expand description

Convenience for the common case: a match’s single capture text by name (None if that capture didn’t fire in this match - some captures in a query are conditional on optional syntax, e.g. ->nullable()).