extend1 0.1.0

Alternative to `Extend::extend_one` that is stable and does not require `#![feature(extend_one)]`.
Documentation
  • Coverage
  • 100%
    3 out of 3 items documented1 out of 3 items with examples
  • Size
  • Source code size: 4.31 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.13 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 11s Average build duration of successful builds.
  • all releases: 11s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • JohnScience/extend1
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • JohnScience

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