David Tolnay | 5533772 | 2016-09-11 12:58:56 -0700 | [diff] [blame^] | 1 | use super::*; |
| 2 | |
| 3 | pub mod generics; |
| 4 | pub mod ident; |
| 5 | pub mod invoke; |
| 6 | pub mod lifetime; |
| 7 | pub mod path; |
| 8 | pub mod qpath; |
| 9 | pub mod ty; |
| 10 | pub mod ty_param; |
| 11 | pub mod where_predicate; |
| 12 | |
| 13 | pub fn id<I>(id: I) -> Ident |
| 14 | where I: Into<Ident> |
| 15 | { |
| 16 | id.into() |
| 17 | } |
| 18 | |
| 19 | pub fn from_generics(generics: Generics) -> generics::GenericsBuilder { |
| 20 | generics::GenericsBuilder::from_generics(generics) |
| 21 | } |
| 22 | |
| 23 | pub fn where_predicate() -> where_predicate::WherePredicateBuilder { |
| 24 | where_predicate::WherePredicateBuilder::new() |
| 25 | } |
| 26 | |
| 27 | pub fn ty() -> ty::TyBuilder { |
| 28 | ty::TyBuilder::new() |
| 29 | } |
| 30 | |
| 31 | pub fn path() -> path::PathBuilder { |
| 32 | path::PathBuilder::new() |
| 33 | } |