Releases: typst/ecow
Releases Β· typst/ecow
Version 0.2.6
- The conversion
From<Vec<T>>forEcoVec<T>was optimized. It still has to allocate new storage, but copies all items in a single batch now (thanks to @bergkvist).
Version 0.2.5
EcoStringnow implementsstd::str::FromStr(thanks to @timvisee)
Version 0.2.4
- Added
EcoString::truncate(thanks to @ronnodas) - Added MSRV (Rust 1.73)
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_mutfor getting an&mut str - Added
EcoString::{replace, replacen, to_ascii_lowercase, to_ascii_uppercase}which perform the respective operation and return anEcoStringinstead 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_elemandeco_vec!macro (thanks to @Kmeakin) - Switched to smarter internal representation of an empty
EcoVecwhich simplifies the code and removes a potential branch inEcoVec::as_slicefor types with huge alignment (thanks to @Kmeakin) - Added
stdfeature (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.