Lines Matching full:segment
26 fn from(segment: T) -> Self { in from()
31 path.segments.push_value(segment.into()); in from()
44 /// - the first path segment has no angle bracketed or parenthesized
46 /// - the ident of the first path segment is equal to the given one.
82 /// - the first path segment has no angle bracketed or parenthesized
110 /// A segment of a path together with any path arguments on that segment.
131 /// Angle bracketed or parenthesized arguments of a path segment.
199 /// Angle bracketed arguments of a path segment: the `<K, V>` in `HashMap<K,
246 /// Arguments of a function path segment: the `(A, B) -> C` in `Fn(A,B) ->
341 let segment = ty.path.segments.pop().unwrap().into_value(); in parse() localVariable
342 let ident = segment.ident; in parse()
343 let generics = match segment.arguments { in parse()
367 let segment = ty.path.segments.pop().unwrap().into_value(); in parse() localVariable
369 ident: segment.ident, in parse()
370 generics: match segment.arguments { in parse()
606 return Err(input.error("expected path segment after `::`")); in parse_mod_style()
644 .all(|segment| segment.arguments.is_none()) in is_mod_style()
740 for segment in path.segments.pairs() { in print_path()
741 print_path_segment(tokens, segment.value(), style); in print_path()
742 segment.punct().to_tokens(tokens); in print_path()
753 fn print_path_segment(tokens: &mut TokenStream, segment: &PathSegment, style: PathStyle) { in print_path_segment()
754 segment.ident.to_tokens(tokens); in print_path_segment()
755 print_path_arguments(tokens, &segment.arguments, style); in print_path_segment()
923 for (i, segment) in segments.by_ref().take(pos).enumerate() { in print_qpath()
924 print_path_segment(tokens, segment.value(), PathStyle::AsWritten); in print_qpath()
928 segment.punct().to_tokens(tokens); in print_qpath()
934 for segment in segments { in print_qpath()
935 print_path_segment(tokens, segment.value(), style); in print_qpath()
936 segment.punct().to_tokens(tokens); in print_qpath()