Struct mica::ll::gc::Memory

source · []
pub struct Memory {
    pub auto_strategy: AutoStrategy,
    /* private fields */
}
Expand description

An allocator and garbage collector for memory.

Fields

auto_strategy: AutoStrategy

Determines when the next GC cycle should run.

Implementations

Creates a new GC.

Returns the amount of bytes currently allocated by the GC.

Allocates a new GcRaw<T> managed by this GC.

If the provided Gc<T> isn’t managed by a GC, makes it managed by this GC. Otherwise does nothing.

Trait Implementations

Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.