- Reduced minimal rust version to 1.71.1
- Added
len_nonzero
.
- Fix
package.rust-version
inCargo.toml
.
- Increased minimal rust version to 1.74.
- Relax lifetime constraints on
{try_,}mapped_{ref,mut}
. - Added new proxy functions for
Vec
try_reserve
try_reserve_exact
shrink_to
spare_capacity_mut
extend_from_within
retain_mut
- Added missing proxy trait impls
impl<T, const N: usize> TryFrom<Vec1<T>> for Box<[T; N]>
impl<T, const N: usize> TryFrom<&[T; N]> for Vec1<T> where T: Clone
impl<T, const N: usize> TryFrom<&mut [T; N]> for Vec1<T> where T: Clone
- Removed no longer needed import/impl workaround.
- Added multiple
_nonzero
implementationstruncate_nonzero
resize_with_nonzero
resize_nonzero
- Improved documentation by using
doc_auto_cfg
on docs.rs.
- Increased minimal rust version to 1.57.
- Added a length>0 aware
reduce
,reduce_ref
,reduce_mut
. - Added
smallvec1_inline!
. - Added
SmallVec1::from_array_const()
.
- Increased minimal rust version to 1.56.
- Added missing LICENSE-MIT,LICENSE-APACHE files. Licensing did not change.
- Added
from_vec_push
andfrom_vec_insert
constructors. - Use edition 2021.
- Impl
TryFrom
for[T; N]
forVec1<T>
/SmallVec1<T>
using const generic.
- minimal rust version is now 1.48
- updated documentation
- more tests
- deprecated the
try_
prefix usage as it created ambiguities with other potentialtry_
versions (like try and don't panic if out of bounds or try and don't panic if allocation fails). - some missing methods and trait implementations (e.g. `drain)
- fixed bug in
Vec1.splice()
which caused the code to return aSize0Error
in a very specific edge case where it should have panicked due to a out of bounds range likeVec.splice()
does.
- minimal rust version is now 1.47
- support for
SmallVec1
backed by thesmallvec
crate (v>=1.6.1) - added
no_std
support (makingstd
a default feature) - converted various
Into
/TryInto
impls intoFrom
/TryFrom
impls. - changes in the documentation for various reasons, some functions
have now less good documentation as they are automatically implemented
for both
Vec1
, andsmallvec-v1::SmallVec1
.
- Added the
split_off_first
andsplit_off_last
methods.
- Updated project to
edition="2018"
(not that this is a purely internal change and doesn't affect the API interface or minimal supported rustc version) - Added CONTRIBUTORS.md
- Updated README.md
- minimal rust version is now 1.34
TryFrom
is no longer feature gatedvec1![]
now allows trailing,
in all casesSize0Error
now no longer has a customstd::error::Error::description()
implementation.- fixed various clippy::pedantic warnings
- updated
Cargo.toml
cargo fmt
New trait impl:
- impl Default for Vec1 where T: Default
New manual proxy methods:
- splice
- to_asci_lowercase
- to_ascii_uppercase
New Into impl for following types:
- Rc<[T]>
- Arc<[T]>
- Box<[T]>
- VecDeque
New TryFrom impl for following types:
- Box<[T]>
- BinaryHeap
- VecDeque
- String
- &str
- &[T] where T: Clone
- &mut [T] where T: Clone
- Added new
try_from_vec
which returns aResult<Vec1<T>, Size0Error>
. - Deprecated
from_vec
as it doesn't return a error type as error.
- New
unstable-nightly-try-from-impl
feature which adds aTryFrom<Vec<T>>
implementation.
- Addead a
serde
feature implementingSerialize
/Deserialize
.