Benjamin Scherer fb92d14ab4 Modify tiny_vec! to avoid error on non-Copy types (#74)
* Modify tiny_vec! to avoid error on non-Copy types

Using $elem in two closures in the previous version of the macro created
errors when using types that don't implement Copy. Moving the decision
of whether to allocate or use an inline array to the macro invocation
resolves this error as the borrow checker can see that both branches are
never taken together.

* Add test for tiny_vec! using non-Copy types

* Fix inference issue

* Use full crate path in tiny_vec!
2020-06-18 09:22:21 -06:00
2020-01-28 12:49:20 +01:00
2020-01-06 19:29:40 -07:00
2020-01-13 20:06:35 -07:00
2020-04-22 12:31:56 -06:00
2020-01-06 19:29:40 -07:00
2020-01-13 20:16:05 -07:00
2020-01-06 19:29:40 -07:00

License:Zlib Minimum Rust Version travis.ci AppVeyor crates.io docs.rs

Unsafe-Zero-Percent

tinyvec

A 100% safe crate of vec-like types.

For details, please see the docs.rs documentation

S
Description
安全的 vec-like 类型库
Readme 845 KiB
Languages
Rust 99.5%
Python 0.3%
Shell 0.2%