rename take to manually drop

This commit is contained in:
Evan Almloff committed 2024-03-08 10:35:27 -06:00
1 parent 60a84956d1
commit 5f9e5f607b
4 files changed
+11 -11

No files matched your search

+2 -2
View File
@@ -186,8 +186,8 @@ impl<T: 'static, S: Storage<T>> GenerationalBox<T, S> {
}
}
/// Take the value out of the generational box and invalidate the generational box. This will return the value if the value was taken.
pub fn take(&self) -> Option<T> {
/// Drop the value out of the generational box and invalidate the generational box. This will return the value if the value was taken.
pub fn manually_drop(&self) -> Option<T> {
if self.validate() {
Storage::take(&self.raw.0.data)
} else {