Lines Matching refs:segments
11 pub segments: Punctuated<PathSegment, Token![::]>,
22 segments: Punctuated::new(), in from()
24 path.segments.push_value(segment.into()); in from()
395 segments: { in parse_mod_style()
396 let mut segments = Punctuated::new(); in parse_mod_style() localVariable
408 segments.push_value(PathSegment::from(ident)); in parse_mod_style()
413 segments.push_punct(punct); in parse_mod_style()
415 if segments.is_empty() { in parse_mod_style()
417 } else if segments.trailing_punct() { in parse_mod_style()
420 segments in parse_mod_style()
443 && self.segments.len() == 1 in is_ident()
444 && self.segments[0].arguments.is_none() in is_ident()
445 && self.segments[0].ident == ident in is_ident()
451 segments: { in parse_helper()
452 let mut segments = Punctuated::new(); in parse_helper() localVariable
454 segments.push_value(value); in parse_helper()
457 segments.push_punct(punct); in parse_helper()
459 segments.push_value(value); in parse_helper()
461 segments in parse_helper()
492 let pos = path.segments.len(); in qpath()
493 path.segments.push_punct(colon2_token); in qpath()
494 path.segments.extend(rest.into_pairs()); in qpath()
500 segments: rest, in qpath()
532 self.segments.to_tokens(tokens); in to_tokens()
677 let pos = if qself.position > 0 && qself.position >= path.segments.len() { in print_path()
678 path.segments.len() - 1 in print_path()
682 let mut segments = path.segments.pairs(); in print_path() localVariable
686 for (i, segment) in segments.by_ref().take(pos).enumerate() { in print_path()
699 for segment in segments { in print_path()