Home
last modified time | relevance | path

Searched refs:WherePredicate (Results 1 - 17 of 17) sorted by relevance

/third_party/rust/crates/serde/serde_derive/src/
H A Dbound.rs31 predicates: &[syn::WherePredicate], in with_where_predicates()
44 from_field: fn(&attr::Field) -> Option<&[syn::WherePredicate]>, in with_where_predicates_from_fields()
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()
72 .flat_map(<[syn::WherePredicate]>::to_vec); in with_where_predicates_from_variants()
285 syn::WherePredicate::Type(syn::PredicateType {
319 .push(syn::WherePredicate::Type(syn::PredicateType { in with_self_bound()
/third_party/rust/crates/syn/tests/
H A Dtest_generics.rs11 use syn::{DeriveInput, ItemFn, TypeParamBound, WhereClause, WherePredicate};
71 WherePredicate::Type(PredicateType { in test_split_for_impl()
199 WherePredicate::Type(PredicateType { in test_fn_precedence_in_where_clause()
260 WherePredicate::Type(pred) => pred, in test_fn_precedence_in_where_clause()
/third_party/rust/crates/serde/serde_derive_internals/src/
H A 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()
H A 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()
626 pub fn de_bound(&self) -> Option<&[syn::WherePredicate]> { in de_bound()
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()
1004 pub fn de_bound(&self) -> Option<&[syn::WherePredicate]> { in de_bound()
1042 ser_bound: Option<Vec<syn::WherePredicate>>,
1043 de_bound: Option<Vec<syn::WherePredicate>>,
[all...]
/third_party/rust/crates/serde/serde_derive/src/internals/
H A 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()
H A 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()
626 pub fn de_bound(&self) -> Option<&[syn::WherePredicate]> { in de_bound()
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()
1004 pub fn de_bound(&self) -> Option<&[syn::WherePredicate]> { in de_bound()
1042 ser_bound: Option<Vec<syn::WherePredicate>>,
1043 de_bound: Option<Vec<syn::WherePredicate>>,
[all...]
/third_party/rust/crates/syn/src/
H A Dgenerics.rs485 pub predicates: Punctuated<WherePredicate, Token![,]>,
499 pub enum WherePredicate { enum
910 impl Parse for WherePredicate {
913 Ok(WherePredicate::Lifetime(PredicateLifetime { in parse()
940 Ok(WherePredicate::Type(PredicateType { in parse()
H A Dlib.rs386 WherePredicate,
/third_party/rust/crates/syn/src/gen/
H A Dclone.rs2174 impl Clone for WherePredicate {
2177 WherePredicate::Lifetime(v0) => WherePredicate::Lifetime(v0.clone()), in clone()
2178 WherePredicate::Type(v0) => WherePredicate::Type(v0.clone()), in clone()
H A Deq.rs2133 impl Eq for WherePredicate {}
2136 impl PartialEq for WherePredicate {
2139 (WherePredicate::Lifetime(self0), WherePredicate::Lifetime(other0)) => { in eq()
2142 (WherePredicate::Type(self0), WherePredicate::Type(other0)) => { in eq()
H A Dfold.rs926 fn fold_where_predicate(&mut self, i: WherePredicate) -> WherePredicate { in fold_where_predicate()
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()
H A Dhash.rs2788 impl Hash for WherePredicate {
2794 WherePredicate::Lifetime(v0) => { in hash()
2798 WherePredicate::Type(v0) => { in hash()
H A Dvisit_mut.rs923 fn visit_where_predicate_mut(&mut self, i: &mut WherePredicate) { in visit_where_predicate_mut()
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()
H A Dvisit.rs922 fn visit_where_predicate(&mut self, i: &'ast WherePredicate) { in visit_where_predicate()
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()
H A Ddebug.rs3036 impl Debug for WherePredicate {
3038 formatter.write_str("WherePredicate::")?; in fmt()
3040 WherePredicate::Lifetime(v0) => { in fmt()
3045 WherePredicate::Type(v0) => { in fmt()
/third_party/rust/crates/syn/tests/common/
H A 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/
H A Dgen.rs4642 impl Debug for Lite<syn::WherePredicate> {
4645 syn::WherePredicate::Lifetime(_val) => { in fmt()
4646 formatter.write_str("WherePredicate::Lifetime")?; in fmt()
4652 syn::WherePredicate::Type(_val) => { in fmt()
4653 formatter.write_str("WherePredicate::Type")?; in fmt()

Completed in 44 milliseconds