Lines Matching refs:segment
26 fn from(segment: T) -> Self { in from()
31 path.segments.push_value(segment.into()); in from()
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()
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()