Function segment

Source
pub fn segment(child: Pair<'_, Rule>) -> Result<Segment, JsonPathError>