Home
last modified time | relevance | path

Searched refs:WherePredicate (Results 1 – 15 of 15) sorted by relevance

/third_party/rust/crates/serde/serde_derive/src/
Dbound.rs31 predicates: &[syn::WherePredicate], in with_where_predicates() argument
44 from_field: fn(&attr::Field) -> Option<&[syn::WherePredicate]>, in with_where_predicates_from_fields() argument
50 .flat_map(<[syn::WherePredicate]>::to_vec); in with_where_predicates_from_fields()
60 from_variant: fn(&attr::Variant) -> Option<&[syn::WherePredicate]>, in with_where_predicates_from_variants() argument
72 .flat_map(<[syn::WherePredicate]>::to_vec); in with_where_predicates_from_variants()
285 syn::WherePredicate::Type(syn::PredicateType { in with_bound()
319 .push(syn::WherePredicate::Type(syn::PredicateType { in with_self_bound()
/third_party/rust/crates/syn/tests/
Dtest_generics.rs11 use syn::{DeriveInput, ItemFn, TypeParamBound, WhereClause, WherePredicate};
260 WherePredicate::Type(pred) => pred, in test_fn_precedence_in_where_clause()
/third_party/rust/crates/serde/serde_derive/src/internals/
Dattr.rs211 ser_bound: Option<Vec<syn::WherePredicate>>,
212 de_bound: Option<Vec<syn::WherePredicate>>,
622 pub fn ser_bound(&self) -> Option<&[syn::WherePredicate]> { in ser_bound() argument
626 pub fn de_bound(&self) -> Option<&[syn::WherePredicate]> { in de_bound() argument
795 ser_bound: Option<Vec<syn::WherePredicate>>,
796 de_bound: Option<Vec<syn::WherePredicate>>,
1000 pub fn ser_bound(&self) -> Option<&[syn::WherePredicate]> { in ser_bound() argument
1004 pub fn de_bound(&self) -> Option<&[syn::WherePredicate]> { in de_bound() argument
1042 ser_bound: Option<Vec<syn::WherePredicate>>,
1043 de_bound: Option<Vec<syn::WherePredicate>>,
[all …]
Dreceiver.rs8 Path, PathArguments, QSelf, ReturnType, Token, Type, TypeParamBound, TypePath, WherePredicate,
232 WherePredicate::Type(predicate) => { in visit_generics_mut()
238 WherePredicate::Lifetime(_) => {} in visit_generics_mut()
/third_party/rust/crates/syn/src/
Dgenerics.rs485 pub predicates: Punctuated<WherePredicate, Token![,]>,
499 pub enum WherePredicate {
910 impl Parse for WherePredicate { implementation
913 Ok(WherePredicate::Lifetime(PredicateLifetime { in parse()
940 Ok(WherePredicate::Type(PredicateType { in parse()
Dlib.rs386 WherePredicate,
/third_party/rust/crates/syn/src/gen/
Dclone.rs2174 impl Clone for WherePredicate { implementation
2177 WherePredicate::Lifetime(v0) => WherePredicate::Lifetime(v0.clone()), in clone()
2178 WherePredicate::Type(v0) => WherePredicate::Type(v0.clone()), in clone()
Deq.rs2133 impl Eq for WherePredicate {} implementation
2136 impl PartialEq for WherePredicate { implementation
2139 (WherePredicate::Lifetime(self0), WherePredicate::Lifetime(other0)) => { in eq()
2142 (WherePredicate::Type(self0), WherePredicate::Type(other0)) => { in eq()
Dfold.rs926 fn fold_where_predicate(&mut self, i: WherePredicate) -> WherePredicate { in fold_where_predicate() argument
3447 pub fn fold_where_predicate<F>(f: &mut F, node: WherePredicate) -> WherePredicate in fold_where_predicate()
3452 WherePredicate::Lifetime(_binding_0) => { in fold_where_predicate()
3453 WherePredicate::Lifetime(f.fold_predicate_lifetime(_binding_0)) in fold_where_predicate()
3455 WherePredicate::Type(_binding_0) => { in fold_where_predicate()
3456 WherePredicate::Type(f.fold_predicate_type(_binding_0)) in fold_where_predicate()
Dhash.rs2788 impl Hash for WherePredicate { implementation
2794 WherePredicate::Lifetime(v0) => { in hash()
2798 WherePredicate::Type(v0) => { in hash()
Dvisit_mut.rs923 fn visit_where_predicate_mut(&mut self, i: &mut WherePredicate) { in visit_where_predicate_mut() argument
3835 pub fn visit_where_predicate_mut<V>(v: &mut V, node: &mut WherePredicate) in visit_where_predicate_mut()
3840 WherePredicate::Lifetime(_binding_0) => { in visit_where_predicate_mut()
3843 WherePredicate::Type(_binding_0) => { in visit_where_predicate_mut()
Dvisit.rs922 fn visit_where_predicate(&mut self, i: &'ast WherePredicate) { in visit_where_predicate() argument
3832 pub fn visit_where_predicate<'ast, V>(v: &mut V, node: &'ast WherePredicate) in visit_where_predicate()
3837 WherePredicate::Lifetime(_binding_0) => { in visit_where_predicate()
3840 WherePredicate::Type(_binding_0) => { in visit_where_predicate()
Ddebug.rs3036 impl Debug for WherePredicate { implementation
3040 WherePredicate::Lifetime(v0) => { in fmt()
3045 WherePredicate::Type(v0) => { in fmt()
/third_party/rust/crates/syn/tests/common/
Deq.rs152 use rustc_ast::ast::WherePredicate;
589 spanless_eq_enum!(WherePredicate; BoundPredicate(0) RegionPredicate(0) EqPredicate(0));
/third_party/rust/crates/syn/tests/debug/
Dgen.rs4642 impl Debug for Lite<syn::WherePredicate> {
4645 syn::WherePredicate::Lifetime(_val) => { in fmt()
4652 syn::WherePredicate::Type(_val) => { in fmt()