Crate rulox_types
source ·Expand description
rulox_types
is a collection of types used by the rulox
crate to
represent dynamically typed values.
Structs
- Arguments to a Lox function.
- A class defined in Lox code.
- An error raised during compilation or execution.
- A function defined in Lox code.
- An instance of a Lox class.
- A variable defined in Lox code.
- A hashmap key.
Enums
- An iterator over a
LoxValue::Array
or aLoxValue::String
. - A dynamically typed value used by Lox programs.
Traits
- A trait for tuples than can be extracted from a
LoxArgs
. - Objects which can be downcast to a concrete type.
- A trait for foreign objects that can be used in Lox.
Functions
- Returns a read-only RAII guard for the shared pointer.
- Returns a read-write RAII guard for the shared pointer.
Type Aliases
- A convenient alias for a
LoxObject
trait object. - A result returned from most Lox operations.