Struct zerogc::dummy_impl::DummyContext[][src]

pub struct DummyContext { /* fields omitted */ }
Expand description

A dummy implementation of crate::GcSystem which is useful for testing

This just blindly allocates memory and doesn’t actually do any collection.

Trait Implementations

impl GcContext for DummyContext[src]

type System = DummySystem

The system used with this context

type Id = DummyCollectorId

The type of ids used in the system

unsafe fn basic_safepoint<T: Trace>(&mut self, _value: &mut &mut T)[src]

Inform the garbage collection system we are at a safepoint and are ready for a potential garbage collection. Read more

unsafe fn freeze(&mut self)[src]

Inform the garbage collection system we are at a safepoint and are ready for a potential garbage collection. Read more

unsafe fn unfreeze(&mut self)[src]

Unfreeze this context, allowing it to be used again. Read more

unsafe fn recurse_context<T, F, R>(&self, value: &mut &mut T, func: F) -> R where
    T: Trace,
    F: for<'gc> FnOnce(&'gc mut Self, &'gc mut T) -> R, 
[src]

Invoke the closure with a temporary GcContext. Read more

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.