lofty-rs icon indicating copy to clipboard operation
lofty-rs copied to clipboard

Make all file writes generic

Open Serial-ATA opened this issue 2 years ago • 0 comments

This adds two new traits, Truncate and Length, which are two operations we needed that required the use of File.

With these two traits, combined with std::io::Read, std::io::Write and std::io::Seek, other types can now be treated as files.

It is now possible to write to a Cursor<Vec<u8>>.

TODO: changelog entry

Serial-ATA avatar Nov 11 '23 18:11 Serial-ATA