case in point, Vec::extend_from_slice(), introduced in 1.6.0 https://doc.rust-lang.org/std/vec/struct.Vec.html#method.extend_from_slice
If Rust gets specialization this function may be deprecated.
even the stdlib is throwing shade
case in point, Vec::extend_from_slice(), introduced in 1.6.0 https://doc.rust-lang.org/std/vec/struct.Vec.html#method.extend_from_slice
If Rust gets specialization this function may be deprecated.
even the stdlib is throwing shade
very cool. i can't use MaybeUninit to provide uninitialized input because the zstd-safe crate doesn't know what MaybeUninit is and the orphan crate rule means i have to nag them because uhhhh soundness
that one's probably worth upstreaming
oh god fucking damn it they encoded it into the WriteBuf trait https://docs.rs/zstd-safe/7.2.4/zstd_safe/trait.WriteBuf.html nvm less work for me
lowest effort rust crate. the method that allows you to optimize a dictionary for a given compression level is not exposed in zstd-safe so we are diving down yet another level of abstraction
wouldn't care except that the zstd c library says on the matter
* The statistics for each
* compression level differ, so tuning the dictionary for the compression level
* can help quite a bit.
which sounds important
i DID just realize that i can make the compression level into a const generic param though which is actually a good API. i could even make the dict id into another const generic param but i see that's something that can actually be queried from the dict buffer itself so there's no reason to add that
there are three overlapping methods to train a dict. this is my first complaint with the zstd library itself. these should all just take the same params object and the params object should have the separate entry points to initialize it. very silly
i remember when i would write
// TODO: replace when x is stabilized