Struct jlrs::wrappers::ptr::value::LeakedValue[][src]

pub struct LeakedValue(_);
Expand description

While jlrs generally enforces that Julia data can only exist and be used while a frame is active, it’s possible to leak global values: Symbols, Modules, and globals defined in those modules.

Implementations

Convert this LeakedValue back to a Value. This requires a Global, so this method can only be called inside a closure taken by one of the scope-methods.

Safety: you must guarantee this value has not been freed by the garbage collector. While Symbols are never garbage collected, modules and their contents can be redefined.

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

Performs the conversion.

Performs the conversion.

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.