1 | #[doc (hidden)] |
2 | pub use std::clone::Clone; |
3 | #[doc (hidden)] |
4 | pub use std::cmp::{Eq, PartialEq}; |
5 | #[doc (hidden)] |
6 | pub use std::concat; |
7 | #[doc (hidden)] |
8 | pub use std::default::Default; |
9 | #[doc (hidden)] |
10 | pub use std::fmt::Debug; |
11 | #[doc (hidden)] |
12 | pub use std::hash::{Hash, Hasher}; |
13 | #[doc (hidden)] |
14 | pub use std::marker::Copy; |
15 | #[doc (hidden)] |
16 | pub use std::option::Option::{None, Some}; |
17 | #[doc (hidden)] |
18 | pub use std::result::Result::{Err, Ok}; |
19 | #[doc (hidden)] |
20 | pub use std::stringify; |
21 | |
22 | #[doc (hidden)] |
23 | pub type Formatter<'a> = std::fmt::Formatter<'a>; |
24 | #[doc (hidden)] |
25 | pub type FmtResult = std::fmt::Result; |
26 | |
27 | #[doc (hidden)] |
28 | pub type bool = std::primitive::bool; |
29 | #[doc (hidden)] |
30 | pub type str = std::primitive::str; |
31 | |
32 | #[cfg (feature = "printing" )] |
33 | #[doc (hidden)] |
34 | pub use quote; |
35 | |
36 | #[doc (hidden)] |
37 | pub type Span = proc_macro2::Span; |
38 | #[doc (hidden)] |
39 | pub type TokenStream2 = proc_macro2::TokenStream; |
40 | |
41 | #[cfg (feature = "parsing" )] |
42 | #[doc (hidden)] |
43 | pub use crate::group::{parse_braces, parse_brackets, parse_parens}; |
44 | |
45 | #[doc (hidden)] |
46 | pub use crate::span::IntoSpans; |
47 | |
48 | #[cfg (all(feature = "parsing" , feature = "printing" ))] |
49 | #[doc (hidden)] |
50 | pub use crate::parse_quote::parse as parse_quote; |
51 | |
52 | #[cfg (feature = "parsing" )] |
53 | #[doc (hidden)] |
54 | pub use crate::token::parsing::{peek_punct, punct as parse_punct}; |
55 | |
56 | #[cfg (feature = "printing" )] |
57 | #[doc (hidden)] |
58 | pub use crate::token::printing::punct as print_punct; |
59 | |
60 | #[cfg (feature = "parsing" )] |
61 | #[doc (hidden)] |
62 | pub use crate::token::private::CustomToken; |
63 | |
64 | #[cfg (feature = "proc-macro" )] |
65 | #[doc (hidden)] |
66 | pub type TokenStream = proc_macro::TokenStream; |
67 | |
68 | #[cfg (feature = "printing" )] |
69 | #[doc (hidden)] |
70 | pub use quote::{ToTokens, TokenStreamExt}; |
71 | |
72 | #[doc (hidden)] |
73 | pub struct private(pub(crate) ()); |
74 | |