Trait vector_common::finalization::Finalizable

source ·
pub trait Finalizable {
    // Required method
    fn take_finalizers(&mut self) -> EventFinalizers;
}
Expand description

An object that can be finalized.

Required Methods§

source

fn take_finalizers(&mut self) -> EventFinalizers

Consumes the finalizers of this object.

Typically used for coalescing the finalizers of multiple items, such as when batching finalizable objects where all finalizations will be processed when the batch itself is processed.

Implementations on Foreign Types§

source§

impl<T: Finalizable> Finalizable for Vec<T>

Implementors§