• Home
  • Raw
  • Download

Lines Matching refs:segments

9         pub segments: Punctuated<PathSegment, Token![::]>,
20 segments: Punctuated::new(), in from()
22 path.segments.push_value(segment.into()); in from()
77 && self.segments.len() == 1 in get_ident()
78 && self.segments[0].arguments.is_none() in get_ident()
80 Some(&self.segments[0].ident) in get_ident()
92 self.segments.first().unwrap().ident.span(), in require_ident()
93 self.segments.last().unwrap().ident.span(), in require_ident()
307 && ty.path.segments.len() == 1 in parse()
308 && match &ty.path.segments[0].arguments { in parse()
314 let segment = ty.path.segments.pop().unwrap().into_value(); in parse()
340 let segment = ty.path.segments.pop().unwrap().into_value(); in parse()
547 segments: { in parse_mod_style()
548 let mut segments = Punctuated::new(); in parse_mod_style() localVariable
559 segments.push_value(PathSegment::from(ident)); in parse_mod_style()
564 segments.push_punct(punct); in parse_mod_style()
566 if segments.is_empty() { in parse_mod_style()
568 } else if segments.trailing_punct() { in parse_mod_style()
571 segments in parse_mod_style()
579 segments: { in parse_helper()
580 let mut segments = Punctuated::new(); in parse_helper() localVariable
582 segments.push_value(value); in parse_helper()
583 segments in parse_helper()
597 path.segments.push_punct(punct); in parse_rest()
599 path.segments.push_value(value); in parse_rest()
605 self.segments in is_mod_style()
636 let pos = path.segments.len(); in qpath()
637 path.segments.push_punct(colon2_token); in qpath()
638 path.segments.extend(rest.into_pairs()); in qpath()
644 segments: rest, in qpath()
680 self.segments.to_tokens(tokens); in to_tokens()
838 let pos = cmp::min(qself.position, path.segments.len()); in print_path()
839 let mut segments = path.segments.pairs(); in print_path() localVariable
843 for (i, segment) in segments.by_ref().take(pos).enumerate() { in print_path()
856 for segment in segments { in print_path()