Module world

Module world 

Source
Expand description

§Motivation

Traits and structs needed to support the creation of bindings for scripting languages. reflection gives us access to dyn PartialReflect objects via their type name, Scripting languages only really support Clone objects so if we want to support references, we need wrapper types which have owned and ref variants.

Structs§

ThreadWorldContainer
A world container that stores the world in a thread local
WorldAccessGuard
Provides safe access to the world via [WorldAccess] permissions, which enforce aliasing rules at runtime in multi-thread environments

Traits§

WorldContainer
Utility type for accessing the world in a callback

Type Aliases§

WorldGuard
Prefer to directly using WorldAccessGuard. If the underlying type changes, this alias will be updated.
WorldGuardRef
Similar to WorldGuard, but without the arc, use for when you don’t need the outer Arc.