#dst #pointers #growable #string #version #type #array-like

nightly grow

A growable pointer type for Rust

1 unstable release

Uses old Rust 2015

0.0.0 May 1, 2016

#13 in #growable

MIT/Apache

9KB
210 lines

grow

A growable pointer type for Rust. Grow generalises the idea of dynamically allocated array-like types like Vec and String to arbitrary DSTs, effectively eliminating the need for separate growable versions of types like [T] and str.

Grow<[T]> is equivalent to Vec<T>, Grow<str> is equivalent to String, Grow<OsStr> is equivalent to OsString, etc.. Note that none of the methods like push, pop etc. are actually implemented on the corresponding Grow types.

Usage

Just add P1start/grow to your Cargo.toml:

[dependencies.grow]
git = "git://github.com/P1start/grow"

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

No runtime deps