Commit Graph

287 Commits

Author SHA1 Message Date
bluss 5df5ee1847 nodrop: 0.1.7 2016-08-25 18:07:02 +02:00
bluss af8f6b5d6e nodrop: Remove the no_drop_flag crate feature
This unstable feature is not supported in nightly anymore (and nor is it
meaningful).
2016-08-25 16:21:57 +02:00
Jake Goulding b0bf84b201 Add is_full predicate methods 2016-05-28 10:03:54 -04:00
bluss a41ecc0a29 Bump arrayvec to 0.3.16 2016-03-01 00:06:45 +01:00
bluss ab2d441153 Merge pull request #31 from bluss/as-slice
Add .as_slice(), .as_mut_slice(), .as_str()
2016-03-01 00:04:32 +01:00
bluss 8d30739409 Add .as_slice(), .as_mut_slice(), .as_str()
Vec and String now have these, so we do too to follow convention.
2016-02-29 23:53:52 +01:00
bluss cb2c2708c3 Merge pull request #30 from bluss/retain-plus
Add .retain()
2016-02-18 00:45:24 +01:00
bluss c5589aecdf Add .retain() method
Based on "retain_mut" as discussed for vec: we can provide &mut to the
element to remove effortlessly.
2016-02-18 00:34:40 +01:00
bluss 49be63d9b8 arrayvec: Reorder method pop 2016-02-17 23:08:46 +01:00
bluss 07b2ca2e1f Edit docs for methods returning Result 2016-02-17 23:08:46 +01:00
bluss 7504f0e1a4 Fix: Display is in libcore 2016-02-07 18:48:48 +01:00
bluss dfa7431c88 Add to readme: Requires Rust 1.2 2016-02-06 21:28:52 +01:00
bluss f9defd2fe0 Bump arrayvec to 0.3.15
Fixes #20
2016-02-06 20:24:24 +01:00
bluss c9789f3461 Merge pull request #24 from bluss/clone_from
impl clone_from for ArrayVec and ArrayString
2016-02-06 20:22:40 +01:00
bluss 5d6033a8ba Merge pull request #28 from bluss/arrayvec-nostd
Add feature "std" to arrayvec: Allow opting out of libstd
2016-02-06 20:22:18 +01:00
bluss 595db1ffcc Add feature "std" to arrayvec: Allow opting out of libstd 2016-02-06 20:16:43 +01:00
bluss 34c45dca50 Merge pull request #27 from bluss/nodrop-next
Nodrop next
2016-02-06 19:56:58 +01:00
bluss cd7f653ed1 Fix shell in .travis 2016-02-06 19:55:48 +01:00
bluss e7ce808b37 Bump nodrop to 0.1.6 and no_std enable 2016-02-06 19:51:23 +01:00
bluss 98a2dc52b1 nodrop: Update to use newer odds 2016-02-06 19:48:20 +01:00
bluss 3635c50fba Merge pull request #26 from bluss/nodrop-std
nodrop: Add std as default feature to enable libstd
2016-02-06 19:41:03 +01:00
bluss 6ab78bbe6c nodrop: Add std as default feature to enable libstd 2016-02-06 19:30:42 +01:00
bluss 62d2cef3ae Merge pull request #25 from gereeter/no-std
Support no_std in nodrop
2016-02-06 19:27:07 +01:00
bluss a17c764f98 impl clone_from for ArrayVec and ArrayString 2016-02-06 15:22:27 +01:00
Jonathan S 7f21c9d79f Support no_std in nodrop 2016-02-05 19:59:38 -06:00
bluss a5f63d3191 Bump to 0.3.14 2016-02-06 01:13:00 +01:00
bluss 9fdb7dd631 Fixup indentation 2016-02-06 00:59:37 +01:00
bluss 95fb85c241 Merge pull request #23 from alexreg/master
Added `ArrayString::from` constructor that takes string slice.
2016-02-06 00:57:03 +01:00
Alexander Regueiro 0a413975f5 Re-added accidentally removed test method.
Also fixed indentation.
2016-02-05 22:56:44 +00:00
Alexander Regueiro 9845491060 Added ArrayString::from constructor that takes string slice.
Also added corresponding test.
2016-02-05 22:30:24 +00:00
bluss 97df44aa2a Update Makefile for deps 2016-01-13 13:11:55 +01:00
bluss 6c71597565 Bump to 0.3.13 2016-01-13 13:10:36 +01:00
bluss 8a5efd1ddb Merge pull request #19 from bluss/dispose-and-more
Dispose and more
2016-01-13 13:07:42 +01:00
bluss c9b17628bf Test on older rust releases in travis 2016-01-13 13:06:32 +01:00
bluss 62d372ce1f Add DerefMut for ArrayString 2016-01-13 13:01:13 +01:00
bluss 2046e3f726 Add method CapacityError::simplify
This is needed so that CapacityError<&str> isn't prohibitively difficult
to use. It converts to CapacityError<()>.
2016-01-13 12:55:29 +01:00
bluss d991c17a25 ArrayString::push_str: Write capacity check in safer style
Use an arithmetic overflow safe conditional.
2015-12-29 12:12:42 +01:00
bluss 440bcbf66b Add ArrayVec::dispose() 2015-12-29 12:12:42 +01:00
bluss 455b28fd61 Merge pull request #18 from bluss/needs-drop
nodrop: Add feature flag use_needs_drop; Tag version 0.1.5
2015-12-14 04:27:05 +01:00
bluss e929801c7e Update travis.yml to only build master branch 2015-12-14 04:22:58 +01:00
bluss 2d55a2d507 nodrop: Add feature flag use_needs_drop; Tag version 0.1.5 2015-12-14 04:21:44 +01:00
bluss 1921048acd Bump version 2015-09-20 16:07:54 +02:00
bluss 76205447ad Merge pull request #15 from bluss/error-trait
Implement Error trait for CapacityError
2015-09-20 13:36:55 +02:00
bluss c73d5fa203 Implement Error trait for CapacityError 2015-09-20 13:02:08 +02:00
bluss d833e2c56d Merge pull request #14 from bluss/arraystring
Arraystring
2015-09-20 12:49:39 +02:00
bluss 7b47f1e891 Use no public fields for CapacityError 2015-09-18 01:00:55 +02:00
bluss 90de29e6cb Remove zero from the Index trait 2015-09-18 00:53:19 +02:00
bluss 6af588cb2c ArrayString: Add PartialEq, Eq, Hash, and tests 2015-09-18 00:52:17 +02:00
bluss fcd7b28124 Merge pull request #13 from tbu-/pr_arraystring
Add `ArrayString`, which is to `ArrayVec` what `String` is to `Vec`
2015-09-18 00:38:00 +02:00
Tobias Bucher 6a8fdfdedb Make push and push_str return Results
The error type is called `CapacityError` and lets you extract the pushed
element.
2015-09-13 12:52:16 +01:00