pub enum ValueType {
Show 27 variants
Int,
Float,
Bool,
String,
List,
DivertTarget,
VariablePointer,
TempPointer,
Null,
FragmentRef,
Array,
Map,
Record,
FnRef,
Closure,
Handle,
Projection,
Option,
Range,
Vec2,
Vec3,
Vec4,
Quat,
Mat2,
Mat3,
Mat4,
Weighted,
}Expand description
The runtime type of a Value.
Variants§
Int
Float
Bool
String
List
DivertTarget
VariablePointer
TempPointer
Null
FragmentRef
Array
A copy-on-write ordered collection (Value::Array).
Map
A copy-on-write insertion-ordered map (Value::Map).
Record
A closed-shape, copy-on-write record (Value::Record) — TM-4.
FnRef
A zero-bound function value (Value::FnRef) — T1c.
Closure
A function value with a bound-arg prefix (Value::Closure) — T1c.
Handle
An opaque host-resource token (Value::Handle) — T1d.
Projection
A symbolic path projection (Value::Projection) — T1e.
Option
A typed-absence value (Value::OptionVal) — NS-A1, Option[T].
Range
An integer range value (Value::Range) — NS-A5, F7.
Vec2
A 2-lane f32 vector (Value::Vec2) — NS-A8, the numeric tower.
Vec3
A 3-lane f32 vector (Value::Vec3) — NS-A8.
Vec4
A 4-lane f32 vector (Value::Vec4) — NS-A8.
Quat
A rotation quaternion, (x, y, z, w) (Value::Quat) — NS-A8.
Mat2
A column-major 2×2 f32 matrix (Value::Mat2) — NS-A8.
Mat3
A column-major 3×3 f32 matrix (Value::Mat3) — NS-A8.
Mat4
A column-major 4×4 f32 matrix (Value::Mat4) — NS-A8.
Weighted
A weighted table (Value::Weighted) — NS-A7, Weighted[T].