Home
last modified time | relevance | path

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

/external/rust/crates/syn/tests/
Dtest_generics.rs5 use syn::{DeriveInput, ItemFn, TypeParamBound, WhereClause, WherePredicate};
261 WherePredicate::Type(pred) => pred, in test_fn_precedence_in_where_clause()
/external/rust/crates/serde_derive/src/internals/
Dreceiver.rs8 Path, PathArguments, QSelf, ReturnType, Type, TypeParamBound, TypePath, WherePredicate,
228 WherePredicate::Type(predicate) => { in visit_generics_mut()
234 WherePredicate::Lifetime(_) | WherePredicate::Eq(_) => {} in visit_generics_mut()
Dattr.rs215 ser_bound: Option<Vec<syn::WherePredicate>>,
216 de_bound: Option<Vec<syn::WherePredicate>>,
646 pub fn ser_bound(&self) -> Option<&[syn::WherePredicate]> { in ser_bound() argument
650 pub fn de_bound(&self) -> Option<&[syn::WherePredicate]> { in de_bound() argument
848 ser_bound: Option<Vec<syn::WherePredicate>>,
849 de_bound: Option<Vec<syn::WherePredicate>>,
1077 pub fn ser_bound(&self) -> Option<&[syn::WherePredicate]> { in ser_bound() argument
1081 pub fn de_bound(&self) -> Option<&[syn::WherePredicate]> { in de_bound() argument
1115 ser_bound: Option<Vec<syn::WherePredicate>>,
1116 de_bound: Option<Vec<syn::WherePredicate>>,
[all …]
/external/rust/crates/serde_derive/src/
Dbound.rs34 predicates: &[syn::WherePredicate], in with_where_predicates() argument
47 from_field: fn(&attr::Field) -> Option<&[syn::WherePredicate]>, in with_where_predicates_from_fields() argument
63 from_variant: fn(&attr::Variant) -> Option<&[syn::WherePredicate]>, in with_where_predicates_from_variants() argument
285 syn::WherePredicate::Type(syn::PredicateType { in with_bound()
319 .push(syn::WherePredicate::Type(syn::PredicateType { in with_self_bound()
/external/rust/crates/pin-project-internal/src/
Dutils.rs13 TypeParamBound, TypePath, Variant, Visibility, WherePredicate,
62 ) -> WherePredicate { in insert_lifetime_and_bound() argument
69 WherePredicate::Type(PredicateType { in insert_lifetime_and_bound()
/external/rust/crates/syn/src/
Dgenerics.rs527 pub predicates: Punctuated<WherePredicate, Token![,]>,
543 pub enum WherePredicate {
937 impl Parse for WherePredicate { implementation
940 Ok(WherePredicate::Lifetime(PredicateLifetime { in parse()
967 Ok(WherePredicate::Type(PredicateType { in parse()
Dlib.rs362 WhereClause, WherePredicate,
/external/rust/crates/syn/src/gen/
Dclone.rs2226 impl Clone for WherePredicate { implementation
2229 WherePredicate::Type(v0) => WherePredicate::Type(v0.clone()), in clone()
2230 WherePredicate::Lifetime(v0) => WherePredicate::Lifetime(v0.clone()), in clone()
2231 WherePredicate::Eq(v0) => WherePredicate::Eq(v0.clone()), in clone()
Deq.rs2276 impl Eq for WherePredicate {} implementation
2279 impl PartialEq for WherePredicate { implementation
2282 (WherePredicate::Type(self0), WherePredicate::Type(other0)) => self0 == other0, in eq()
2283 (WherePredicate::Lifetime(self0), WherePredicate::Lifetime(other0)) => self0 == other0, in eq()
2284 (WherePredicate::Eq(self0), WherePredicate::Eq(other0)) => self0 == other0, in eq()
Dfold.rs772 fn fold_where_predicate(&mut self, i: WherePredicate) -> WherePredicate { in fold_where_predicate() argument
3198 pub fn fold_where_predicate<F>(f: &mut F, node: WherePredicate) -> WherePredicate in fold_where_predicate()
3203 WherePredicate::Type(_binding_0) => WherePredicate::Type(f.fold_predicate_type(_binding_0)), in fold_where_predicate()
3204 WherePredicate::Lifetime(_binding_0) => { in fold_where_predicate()
3205 WherePredicate::Lifetime(f.fold_predicate_lifetime(_binding_0)) in fold_where_predicate()
3207 WherePredicate::Eq(_binding_0) => WherePredicate::Eq(f.fold_predicate_eq(_binding_0)), in fold_where_predicate()
Dhash.rs2847 impl Hash for WherePredicate { implementation
2853 WherePredicate::Type(v0) => { in hash()
2857 WherePredicate::Lifetime(v0) => { in hash()
2861 WherePredicate::Eq(v0) => { in hash()
Dvisit_mut.rs772 fn visit_where_predicate_mut(&mut self, i: &mut WherePredicate) { in visit_where_predicate_mut() argument
3766 pub fn visit_where_predicate_mut<V>(v: &mut V, node: &mut WherePredicate) in visit_where_predicate_mut()
3771 WherePredicate::Type(_binding_0) => { in visit_where_predicate_mut()
3774 WherePredicate::Lifetime(_binding_0) => { in visit_where_predicate_mut()
3777 WherePredicate::Eq(_binding_0) => { in visit_where_predicate_mut()
Ddebug.rs3015 impl Debug for WherePredicate { implementation
3018 WherePredicate::Type(v0) => { in fmt()
3023 WherePredicate::Lifetime(v0) => { in fmt()
3028 WherePredicate::Eq(v0) => { in fmt()
Dvisit.rs768 fn visit_where_predicate(&mut self, i: &'ast WherePredicate) { in visit_where_predicate() argument
3760 pub fn visit_where_predicate<'ast, V>(v: &mut V, node: &'ast WherePredicate) in visit_where_predicate()
3765 WherePredicate::Type(_binding_0) => { in visit_where_predicate()
3768 WherePredicate::Lifetime(_binding_0) => { in visit_where_predicate()
3771 WherePredicate::Eq(_binding_0) => { in visit_where_predicate()
/external/rust/crates/syn/tests/common/
Deq.rs20 VisibilityKind, WhereBoundPredicate, WhereClause, WhereEqPredicate, WherePredicate,
392 spanless_eq_enum!(WherePredicate; BoundPredicate(0) RegionPredicate(0) EqPredicate(0));
/external/rust/crates/syn/tests/debug/
Dgen.rs5618 impl Debug for Lite<syn::WherePredicate> {
5622 syn::WherePredicate::Type(_val) => { in fmt()
5629 syn::WherePredicate::Lifetime(_val) => { in fmt()
5636 syn::WherePredicate::Eq(_val) => { in fmt()