pub struct GCSystem { /* private fields */ }Implementations§
Source§impl GCSystem
impl GCSystem
pub fn new(trigger: Option<(usize, usize)>) -> GCSystem
pub fn new_object<T: GCObject + 'static>(&mut self, object: T) -> GCRef
pub fn immediate_collect(&mut self)
pub fn collect(&mut self)
pub fn check_and_collect(&mut self)
pub fn _debug_print(&self)
pub fn _print_reference_graph(&self)
pub fn drop_all(&mut self)
pub fn _is_available(&self, gc_ref: &GCRef) -> bool
pub fn _count(&self) -> usize
pub fn _get_all_objects(&self) -> &Vec<GCRef>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GCSystem
impl !RefUnwindSafe for GCSystem
impl !Send for GCSystem
impl !Sync for GCSystem
impl Unpin for GCSystem
impl !UnwindSafe for GCSystem
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more