extend1

Crates.ioextend1
lib.rsextend1
version0.1.0
sourcesrc
created_at2023-06-24 09:33:50.515762
updated_at2023-06-24 09:33:50.515762
descriptionAlternative to `Extend::extend_one` that is stable and does not require `#![feature(extend_one)]`.
homepage
repositoryhttps://github.com/JohnScience/extend1
max_upload_size
id898885
size4,175
Dmitrii - Demenev (JohnScience)

documentation

https://docs.rs/extend1

README

Stable Extend::extend_one alternative

crates.io crates.io

Alternative to Extend::extend_one that is stable and does not require #![feature(extend_one)].

Example

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!\"");

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Commit count: 1

cargo fmt