shrink-to-fit 0.2.6

Recursively calls `shrink_to_fit` on all elements of the container.
docs.rs failed to build shrink-to-fit-0.2.6
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: shrink-to-fit-0.2.5

Shrink-to-fit trait for collections.

This crate provides a ShrinkToFit trait that can be used to shrink-to-fit collections.

Examples

use shrink_to_fit::ShrinkToFit;

let mut vec = Vec::with_capacity(100);
vec.push(1);
vec.push(2);
vec.push(3);
vec.shrink_to_fit();
assert_eq!(vec.len(), 3);
assert_eq!(vec.capacity(), 3);