Struct wasmer_vm::Global[][src]

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

A Global instance

Implementations

Create a new, zero bit-pattern initialized global from a GlobalType.

Get the type of the global.

Get a pointer to the underlying definition used by the generated code.

Get a value from the global.

Set a value for the global.

Safety

The caller should check that the val comes from the same store as this global.

Set a value from the global (unchecked)

Safety

The caller should check that the val comes from the same store as this global. The caller should also ensure that this global is synchronized. Otherwise, use set instead.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the size of the referenced value in bytes. Read more

Safety

This is safe to send between threads because there is no-thread specific logic. TODO: look into other reasons that make something not Send

Safety

This is safe to share between threads because it uses a Mutex internally.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

The archived version of the pointer metadata for this type.

Converts some archived metadata to the pointer metadata for itself.

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type for metadata in pointers and references to Self.

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.