| Crates.io | extend1 |
| lib.rs | extend1 |
| version | 0.1.0 |
| created_at | 2023-06-24 09:33:50.515762+00 |
| updated_at | 2023-06-24 09:33:50.515762+00 |
| description | Alternative to `Extend::extend_one` that is stable and does not require `#![feature(extend_one)]`. |
| homepage | |
| repository | https://github.com/JohnScience/extend1 |
| max_upload_size | |
| id | 898885 |
| size | 4,175 |
Extend::extend_one alternativeAlternative to Extend::extend_one that is stable and does not require #![feature(extend_one)].
use proc_macro2 as pm2;
use extend1::Extend1;
let mut ts = pm2::TokenStream::new();
ts.extend1(pm2::Literal::string("Hello, world!"));
assert_eq!(ts.to_string(), "\"Hello, world!\"");