Home
last modified time | relevance | path

Searched refs:ImplItem (Results 1 – 12 of 12) sorted by relevance

/external/rust/crates/pin-project-internal/src/
Dpinned_drop.rs4 parse_quote, spanned::Spanned, visit_mut::VisitMut, Error, FnArg, GenericArgument, ImplItem,
85 ImplItem::Const(item) => { in validate_impl()
88 ImplItem::Type(item) => { in validate_impl()
91 ImplItem::Method(method) => { in validate_impl()
198 if let ImplItem::Method(method) = &mut item.items[0] { method } else { unreachable!() }; in expand_impl()
/external/rust/crates/async-trait/src/
Dexpand.rs10 parse_quote, Attribute, Block, FnArg, GenericParam, Generics, Ident, ImplItem, Lifetime, Pat,
97 if let ImplItem::Type(assoc) = inner { in expand()
109 if let ImplItem::Method(method) = inner { in expand()
/external/rust/crates/syn/src/
Ditem.rs196 pub items: Vec<ImplItem>,
791 pub enum ImplItem {
2553 impl Parse for ImplItem { implementation
2570 input.parse().map(ImplItem::Method) in parse()
2580 return Ok(ImplItem::Const(ImplItemConst { in parse()
2594 return Ok(ImplItem::Verbatim(verbatim::between(begin, input))); in parse()
2602 input.call(item_existential).map(ImplItem::Verbatim) in parse()
2611 input.parse().map(ImplItem::Macro) in parse()
2618 ImplItem::Const(item) => &mut item.attrs, in parse()
2619 ImplItem::Method(item) => &mut item.attrs, in parse()
[all …]
Dlib.rs372 ImplItem, ImplItemConst, ImplItemMacro, ImplItemMethod, ImplItemType, Item, ItemConst,
/external/rust/crates/syn/src/gen/
Dclone.rs952 impl Clone for ImplItem { implementation
955 ImplItem::Const(v0) => ImplItem::Const(v0.clone()), in clone()
956 ImplItem::Method(v0) => ImplItem::Method(v0.clone()), in clone()
957 ImplItem::Type(v0) => ImplItem::Type(v0.clone()), in clone()
958 ImplItem::Macro(v0) => ImplItem::Macro(v0.clone()), in clone()
959 ImplItem::Verbatim(v0) => ImplItem::Verbatim(v0.clone()), in clone()
Deq.rs968 impl Eq for ImplItem {} implementation
971 impl PartialEq for ImplItem { implementation
974 (ImplItem::Const(self0), ImplItem::Const(other0)) => self0 == other0, in eq()
975 (ImplItem::Method(self0), ImplItem::Method(other0)) => self0 == other0, in eq()
976 (ImplItem::Type(self0), ImplItem::Type(other0)) => self0 == other0, in eq()
977 (ImplItem::Macro(self0), ImplItem::Macro(other0)) => self0 == other0, in eq()
978 (ImplItem::Verbatim(self0), ImplItem::Verbatim(other0)) => { in eq()
Dfold.rs335 fn fold_impl_item(&mut self, i: ImplItem) -> ImplItem { in fold_impl_item() argument
1779 pub fn fold_impl_item<F>(f: &mut F, node: ImplItem) -> ImplItem in fold_impl_item()
1784 ImplItem::Const(_binding_0) => ImplItem::Const(f.fold_impl_item_const(_binding_0)), in fold_impl_item()
1785 ImplItem::Method(_binding_0) => ImplItem::Method(f.fold_impl_item_method(_binding_0)), in fold_impl_item()
1786 ImplItem::Type(_binding_0) => ImplItem::Type(f.fold_impl_item_type(_binding_0)), in fold_impl_item()
1787 ImplItem::Macro(_binding_0) => ImplItem::Macro(f.fold_impl_item_macro(_binding_0)), in fold_impl_item()
1788 ImplItem::Verbatim(_binding_0) => ImplItem::Verbatim(_binding_0), in fold_impl_item()
Dhash.rs1257 impl Hash for ImplItem { implementation
1263 ImplItem::Const(v0) => { in hash()
1267 ImplItem::Method(v0) => { in hash()
1271 ImplItem::Type(v0) => { in hash()
1275 ImplItem::Macro(v0) => { in hash()
1279 ImplItem::Verbatim(v0) => { in hash()
Dvisit_mut.rs338 fn visit_impl_item_mut(&mut self, i: &mut ImplItem) { in visit_impl_item_mut() argument
2045 pub fn visit_impl_item_mut<V>(v: &mut V, node: &mut ImplItem) in visit_impl_item_mut()
2050 ImplItem::Const(_binding_0) => { in visit_impl_item_mut()
2053 ImplItem::Method(_binding_0) => { in visit_impl_item_mut()
2056 ImplItem::Type(_binding_0) => { in visit_impl_item_mut()
2059 ImplItem::Macro(_binding_0) => { in visit_impl_item_mut()
2062 ImplItem::Verbatim(_binding_0) => { in visit_impl_item_mut()
Ddebug.rs1342 impl Debug for ImplItem { implementation
1345 ImplItem::Const(v0) => { in fmt()
1350 ImplItem::Method(v0) => { in fmt()
1355 ImplItem::Type(v0) => { in fmt()
1360 ImplItem::Macro(v0) => { in fmt()
1365 ImplItem::Verbatim(v0) => { in fmt()
Dvisit.rs334 fn visit_impl_item(&mut self, i: &'ast ImplItem) { in visit_impl_item() argument
2039 pub fn visit_impl_item<'ast, V>(v: &mut V, node: &'ast ImplItem) in visit_impl_item()
2044 ImplItem::Const(_binding_0) => { in visit_impl_item()
2047 ImplItem::Method(_binding_0) => { in visit_impl_item()
2050 ImplItem::Type(_binding_0) => { in visit_impl_item()
2053 ImplItem::Macro(_binding_0) => { in visit_impl_item()
2056 ImplItem::Verbatim(_binding_0) => { in visit_impl_item()
/external/rust/crates/syn/tests/debug/
Dgen.rs2341 impl Debug for Lite<syn::ImplItem> {
2345 syn::ImplItem::Const(_val) => { in fmt()
2368 syn::ImplItem::Method(_val) => { in fmt()
2390 syn::ImplItem::Type(_val) => { in fmt()
2413 syn::ImplItem::Macro(_val) => { in fmt()
2433 syn::ImplItem::Verbatim(_val) => { in fmt()