pub trait ReadVarValue {
type Value;
// Required method
fn read_value(self, rt: &mut RustRuntimeServices<'_>) -> Self::Value;
}
Expand description
Read the value of one or more flowey Vars.
By having this be a trait, it is possible to read
both single
instances of ReadVar
/ WriteVar
, as well as whole collections of
Vars.
Required Associated Types§
Required Methods§
Sourcefn read_value(self, rt: &mut RustRuntimeServices<'_>) -> Self::Value
fn read_value(self, rt: &mut RustRuntimeServices<'_>) -> Self::Value
Read the value of the Var at runtime.