You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ManagedFile has had its metadata functions moved to a new trait File which ManagedFile must be an implementor of. This allows dyn File to be used
internally. As a result, PagedWriter no longer takes a file type generic
parameter.
ManagedFile has had its functions open_for_read and open_for_append have
been moved to a new trait, ManagedFileOpener.
FileManager::replace_with now takes the replacement file itself instead of
the file's Path.
compare_and_swap has had the old parameter loosened to &[u8], avoiding
an extra allocation.
TreeFile::push() has been renamed TreeFile::set() and now accepts any type
that can convert to `ArcBytes<'static>.
Added
AnyFileManager has been added to make it easy to select between memory or
standard files at runtime.
Tree::first[_key](), TransactionTree::first[_key](), and TreeFile::first[_key]() have been added, pairing the functionality provided
by last() and last_key().
This discussion was created from the release v0.3.0.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Breaking Changes
ManagedFile
has had its metadata functions moved to a new traitFile
whichManagedFile
must be an implementor of. This allowsdyn File
to be usedinternally. As a result,
PagedWriter
no longer takes a file type genericparameter.
ManagedFile
has had its functionsopen_for_read
andopen_for_append
havebeen moved to a new trait,
ManagedFileOpener
.FileManager::replace_with
now takes the replacement file itself instead ofthe file's Path.
compare_and_swap
has had theold
parameter loosened to&[u8]
, avoidingan extra allocation.
TreeFile::push()
has been renamedTreeFile::set()
and now accepts any typethat can convert to `ArcBytes<'static>.
Added
AnyFileManager
has been added to make it easy to select between memory orstandard files at runtime.
Tree::first[_key]()
,TransactionTree::first[_key]()
, andTreeFile::first[_key]()
have been added, pairing the functionality providedby
last()
andlast_key()
.This discussion was created from the release v0.3.0.
Beta Was this translation helpful? Give feedback.
All reactions