Releases: typst/ecow
Releases Β· typst/ecow
Version 0.2.3
- Added
From<&EcoString> for EcoString
(thanks to @idlercloud) - Added
TryFrom<EcoVec<T>>
for[T; N]
(thanks to @kaikalii) - EcoString capacity now grows by 2x instead of +1 when spilling (16 -> 32 instead of 16 -> 17). When already spilled it already did 2x growth before.
Version 0.2.2
- Added
EcoVec::extend_from_trusted
(thanks to @kaikalii)
Version 0.2.1
- Added
From<&String> for EcoString
(thanks to @IanManske) - Improved internal pointer handling
Version 0.2.0
- Added
EcoString::make_mut
for getting an&mut str
- Added
EcoString::{replace, replacen, to_ascii_lowercase, to_ascii_uppercase}
which perform the respective operation and return anEcoString
instead of aString
. (Breaking change) - Added missing
#[inline]
annotation (thanks to @Kmeakin) - Fixed typos and marked one internal function unsafe (thanks to @hwjsnc)
Version 0.1.2
- Marked
EcoVec::{new, is_empty, len}
as const fn (thanks to @Kmeakin) - Improved performance of
EcoVec::from_elem
andeco_vec!
macro (thanks to @Kmeakin) - Switched to smarter internal representation of an empty
EcoVec
which simplifies the code and removes a potential branch inEcoVec::as_slice
for types with huge alignment (thanks to @Kmeakin) - Added
std
feature (enabled by default) andimpl std::io::Write for EcoVec<u8>
guarded by it (thanks to @imbrem)
0.1.1
0.1
This is the initial release of ecow
, a library with a compact, clone-write vector and string.