-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
arrayvec vs tinyvec #1
Comments
The program below makes me think that elements in
If by varying in length you mean that the type is not #!/usr/bin/env run-cargo-script
//! https://crates.io/crates/cargo-script
//!
//! ```cargo
//! [dependencies]
//! tinyvec = "1.2.0"
//! ```
fn main() {
tinyvec::ArrayVec::<[String; 4]>::new();
} |
I goofed, apparently |
Ah, thanks for the clarification. Looks like there is a feature request to make a copyable |
Unfortunately that feature request has been hanging around since 2016. I figured being Copy-able was as noteworthy as requiring Default, but I'll quit harping on it. |
I found tinyvec because of your guide, but I'd like to note that the difference isn't just that its elements must implement Default, they must also implement Copy (mutually exclusive with Drop). I was helping someone in Discord who needed a type that could vary in length and be Copied.
The text was updated successfully, but these errors were encountered: