Skip to content

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

Notifications You must be signed in to change notification settings

JohnScience/extend1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages