mod gc;
mod gc_store;
mod no_trace;
mod root;
mod store;
#[cfg(test)]
mod tests;
pub use ::gc::collect;
pub use derive::*;
pub mod raw {
pub use crate::root::Reroot;
pub use crate::store::*;
pub use gc::{alloc, alloc_unmanaged, manage, GcPtr, Root};
pub use gc::{count_managed_objects, count_roots};
pub use gc::{NullTrace, Trace};
}
pub use self::gc::*;
pub use self::gc_store::*;
pub use self::no_trace::*;
pub use self::root::{HeapRoot, Root};
pub trait Finalize {
fn finalize(&mut self);
}
pub unsafe trait UnsafeFinalize {
fn finalize(&mut self);
}
impl<T: UnsafeFinalize + ?Sized> Finalize for T {
fn finalize(&mut self) {
UnsafeFinalize::finalize(self)
}
}
pub trait GC<'root>: crate::raw::Reroot<'root> + crate::raw::Trace {}