Crate koto_runtime
source ·Expand description
Contains the runtime and core library for the Koto language
Re-exports§
pub use koto_derive as derive;
Modules§
- The core library for the Koto language
- A collection of useful items to make it easier to work with
koto_runtime
Macros§
- Makes a Ptr, with support for casting to trait objects
- Makes a PtrMut, with support for casting to trait objects
- Creates a crate::Error from a message (with format-like behaviour), wrapped in
Err
Structs§
- An immutably borrowed reference to a value borrowed from a KCell
- A mutably borrowed reference to a value borrowed from a KCell
- A combination of BufReader and BufWriter
- The context provided when a call to a KNativeFunction is made
- The default stderr used in Koto
- The default stdin used in Koto
- The default stdout used in Koto
- A helper for converting Koto values to strings
- An error thrown by the Koto runtime
- A Koto function with captured values
- A mutable value with borrowing checked at runtime
- A Koto function
- The iterator value type used in Koto
- The Koto runtime’s List type
- An function that’s defined outside of the Koto runtime
- A wrapper for KotoObjects used in the Koto runtime
- The integer range type used by the Koto runtime
- The String type used by the Koto runtime
- The Tuple type used by the Koto runtime
- The Koto runtime’s virtual machine
- The configurable settings that should be used by the Koto runtime
- The meta map used by KMap
- Context provided to a function that implements an object method
- An immutable pointer to a value in allocated memory
- The key type used by ValueMap
- The (ValueKey -> Value) ‘data’ hashmap used by the Koto runtime
Enums§
- The binary operations that can be implemented in a MetaMap
- Function call arguments
- The different error types that can be thrown by the Koto runtime
- An enum that indicates to the runtime if a KotoObject is iterable
- The output type for iterators in Koto
- The Number type used by the Koto runtime
- The core Value type for Koto
- The key type used by MetaMaps
- The unary operations that can be implemented in a MetaMap
Traits§
- A trait for defining how objects should behave when copied in the Koto runtime
- A trait that allows objects to support ‘.’ lookups
- A trait used for file-like-things in Koto
- A trait for native functions used by the Koto runtime
- The trait used to implement iterators in Koto
- A trait for implementing objects that can be added to the Koto runtime
- A trait that defines the read operations of a KotoFile
- Types that can be transferred across thread boundaries.
- Types for which it is safe to share references between threads.
- A trait for specifying a Koto object’s type
- A trait that defines the write operations of a KotoFile
- The trait used by the ‘module imported’ callback mechanism
Functions§
- Creates an error that describes a type mismatch
- Creates an error that describes a type mismatch with a slice of KValues
Type Aliases§
- The hasher used throughout the Koto runtime
- A mutable pointer to a value in allocated memory
- The Result type used by the Koto Runtime
- The underlying Vec type used by KList