Home
last modified time | relevance | path

Searched refs:qself (Results 1 – 21 of 21) sorted by relevance

/external/rust/crates/serde_derive/src/internals/
Dreceiver.rs31 fn self_to_qself(&self, qself: &mut Option<QSelf>, path: &mut Path) { in self_to_qself()
42 *qself = Some(QSelf { in self_to_qself()
77 if node.qself.is_none() && node.path.is_ident("Self") { in visit_type_mut()
92 if ty.qself.is_none() { in visit_type_path_mut()
93 self.self_to_qself(&mut ty.qself, &mut ty.path); in visit_type_path_mut()
100 if expr.qself.is_none() { in visit_expr_path_mut()
101 self.self_to_qself(&mut expr.qself, &mut expr.path); in visit_expr_path_mut()
129 if let Some(qself) = &mut ty.qself { in visit_type_mut_impl()
130 self.visit_type_mut(&mut qself.ty); in visit_type_mut_impl()
158 if let Some(qself) = &mut ty.qself { in visit_type_path_mut_impl()
[all …]
Dattr.rs1383 qself: None, in from_ast()
1400 qself: None, in from_ast()
1818 syn::Type::Path(ty) => ty.qself.is_none() && is_primitive_path(&ty.path, primitive), in is_primitive_type()
1876 if let Some(qself) = &ty.qself { in collect_lifetimes()
1877 collect_lifetimes(&qself.ty, out); in collect_lifetimes()
/external/rust/crates/pin-project-internal/src/
Dutils.rs188 fn self_to_qself(&self, qself: &mut Option<QSelf>, path: &mut Path) { in self_to_qself()
204 *qself = Some(QSelf { in self_to_qself()
295 if node.qself.is_none() && node.path.is_ident("Self") { in visit_type_mut()
307 if ty.qself.is_none() { in visit_type_path_mut()
308 self.self_to_qself(&mut ty.qself, &mut ty.path); in visit_type_path_mut()
315 if expr.qself.is_none() { in visit_expr_path_mut()
317 self.self_to_qself(&mut expr.qself, &mut expr.path); in visit_expr_path_mut()
328 if pat.qself.is_none() { in visit_pat_path_mut()
329 self.self_to_qself(&mut pat.qself, &mut pat.path); in visit_pat_path_mut()
Dpinned_drop.rs108 if let Type::Path(TypePath { qself: None, path }) = ty { Some(path) } else { None } in validate_sig()
/external/rust/crates/syn/src/
Dpath.rs257 if argument.qself.is_none() in parse()
628 let qself = QSelf { in qpath() localVariable
635 Ok((Some(qself), path)) in qpath()
796 pub(crate) fn print_path(tokens: &mut TokenStream, qself: &Option<QSelf>, path: &Path) { in print_path()
797 let qself = match qself { in print_path() localVariable
798 Some(qself) => qself, in print_path()
804 qself.lt_token.to_tokens(tokens); in print_path()
805 qself.ty.to_tokens(tokens); in print_path()
807 let pos = cmp::min(qself.position, path.segments.len()); in print_path()
810 TokensOrDefault(&qself.as_token).to_tokens(tokens); in print_path()
[all …]
Dpat.rs182 pub qself: Option<QSelf>,
377 let (qself, path) = path::parsing::qpath(input, true)?; in pat_path_or_macro_or_struct_or_range()
380 return pat_range(input, begin, qself, path); in pat_path_or_macro_or_struct_or_range()
383 if qself.is_some() { in pat_path_or_macro_or_struct_or_range()
386 qself, in pat_path_or_macro_or_struct_or_range()
422 pat_range(input, begin, qself, path) in pat_path_or_macro_or_struct_or_range()
426 qself, in pat_path_or_macro_or_struct_or_range()
562 qself: Option<QSelf>, in pat_range()
572 qself, in pat_range()
832 private::print_path(tokens, &self.qself, &self.path); in to_tokens()
Dty.rs204 pub qself: Option<QSelf>,
378 qself: Some(QSelf { in ambig_ty()
475 Type::Path(TypePath { qself: None, path }) => { in ambig_ty()
557 if ty.qself.is_some() { in ambig_ty()
825 let (qself, mut path) = path::parsing::qpath(input, false)?; in parse()
833 Ok(TypePath { qself, path }) in parse()
1023 qself: None, in parse_bare_fn_arg()
1152 private::print_path(tokens, &self.qself, &self.path); in to_tokens()
Dexpr.rs610 pub qself: Option<QSelf>,
1803 if expr.qself.is_some() { in path_or_macro_or_struct()
2593 qself: None, in parse()
2765 let (qself, path) = path::parsing::qpath(input, true)?; in parse()
2767 Ok(ExprPath { attrs, qself, path }) in parse()
3315 private::print_path(tokens, &self.qself, &self.path); in to_tokens()
Ditem.rs2506 if let Type::Path(TypePath { qself: None, path }) = first_ty { in parse_impl()
/external/rust/crates/serde_derive/src/
Dbound.rs166 if let Some(qself) = &ty.qself { in with_bound()
167 self.visit_type(&qself.ty); in with_bound()
280 qself: None, in with_bound()
372 qself: None, in type_of_item()
388 qself: None, in type_of_item()
/external/rust/crates/structopt-derive/src/
Dty.rs50 qself: None, in only_last_segment()
/external/rust/crates/syn/src/gen/
Dclone.rs590 qself: self.qself.clone(), in clone()
1542 qself: self.qself.clone(), in clone()
2018 qself: self.qself.clone(), in clone()
Deq.rs594 self.attrs == other.attrs && self.qself == other.qself && self.path == other.path in eq()
1555 self.attrs == other.attrs && self.qself == other.qself && self.path == other.path in eq()
2056 self.qself == other.qself && self.path == other.path in eq()
Dfold.rs1393 qself: (node.qself).map(|it| f.fold_qself(it)), in fold_expr_path()
2469 qself: (node.qself).map(|it| f.fold_qself(it)), in fold_pat_path()
2984 qself: (node.qself).map(|it| f.fold_qself(it)), in fold_type_path()
Dhash.rs816 self.qself.hash(state); in hash()
1994 self.qself.hash(state); in hash()
2596 self.qself.hash(state); in hash()
Ddebug.rs904 formatter.field("qself", &self.qself); in fmt()
2156 formatter.field("qself", &self.qself); in fmt()
2762 formatter.field("qself", &self.qself); in fmt()
Dvisit_mut.rs1579 if let Some(it) = &mut node.qself { in visit_expr_path_mut()
2885 if let Some(it) = &mut node.qself { in visit_pat_path_mut()
3525 if let Some(it) = &mut node.qself { in visit_type_path_mut()
Dvisit.rs1575 if let Some(it) = &node.qself { in visit_expr_path()
2879 if let Some(it) = &node.qself { in visit_pat_path()
3519 if let Some(it) = &node.qself { in visit_type_path()
/external/rust/crates/async-trait/src/
Dexpand.rs415 if ty.qself.is_none() in contains_associated_type_impl_trait()
/external/rust/cxx/syntax/
Dparse.rs1109 if ty.qself.is_none() && path.leading_colon.is_none() && path.segments.len() == 1 { in parse_type_path()
1328 if ty.qself.is_none() && path.leading_colon.is_none() && path.segments.len() == 1 { in parse_return_type()
/external/rust/crates/syn/tests/debug/
Dgen.rs838 if let Some(val) = &_val.qself { in fmt()
1583 if let Some(val) = &_val.qself { in fmt()
3774 if let Some(val) = &_val.qself { in fmt()
4025 if let Some(val) = &_val.qself { in fmt()
4941 if let Some(val) = &_val.qself { in fmt()
5271 if let Some(val) = &_val.qself { in fmt()