Struct livemod::ModVar [−][src]
pub struct ModVar<T> { /* fields omitted */ }
Expand description
A variable tracked by an external livemod viewer
A ModVar
cannot be created directly, and must be created using the LiveModHandle::create_variable
method.
Implementations
Get an immutable reference to the value in this ModVar
. The value will not be changed
by the external viewer while this reference is held.
Get a mutable reference to the value in thie ModVar
The value will not be changed
by the external viewer while this reference is held. The value in the external viewer
will be updated if and only if the ModVarMutGuard
is dereferenced mutably.