Lines Matching defs:from
15 //! main.rs.** Types from `proc_macro` are entirely specific to procedural
25 //! executed from a unit test. In order for helper libraries or components of
44 //! let input = proc_macro2::TokenStream::from(input);
51 //! proc_macro::TokenStream::from(output)
85 //! types make use of thread-local memory, meaning they cannot be accessed from
147 // a niche use case so we omit it from rustdoc.
190 /// Error returned from `TokenStream::from_str`.
253 fn from(inner: proc_macro::TokenStream) -> Self {
261 fn from(inner: TokenStream) -> Self {
267 fn from(token: TokenTree) -> Self {
268 TokenStream::_new(imp::TokenStream::from(token))
451 /// Panics if called from outside of a procedural macro. Unlike
507 /// Returns `None` if `self` and `other` are from different files.
510 /// nightly-only. When called from within a procedural macro not using a
587 fn from(g: Group) -> Self {
593 fn from(g: Ident) -> Self {
599 fn from(g: Punct) -> Self {
605 fn from(g: Literal) -> Self {
665 /// coming from a "macro variable" `$var`. It is important to preserve
797 /// Creates a new `Punct` from the given character and spacing.
873 /// A new ident can be created from a string using the `Ident::new` function.
1058 /// also suffixed at the end. Literals created from negative numbers may
1079 /// `Literal::u32_unsuffixed(1)`. Literals created from negative numbers
1142 /// Literals created from negative numbers may not survive round-trips
1160 /// compiler. Literals created from negative numbers may not survive
1178 /// Literals created from negative numbers may not survive round-trips
1196 /// compiler. Literals created from negative numbers may not survive
1239 /// nightly-only. When called from within a procedural macro not using a