Expand description
§Example
use neptune_lang::*;
let vm = VM::new(NoopModuleLoader);
vm.exec_sync("<script>", "/*do nothing*/").unwrap();
Structs§
- Compile
Error - Compile
Error List - EFunc
Context - Neptune
Error - This type represents the
Error
class of Neptune lang. - Noop
Module Loader - Resource
- Represents a resource. It can be used efuncs that return resources
- VM
- Instance of a Neptune VM
Enums§
- EFunc
Error - EFunc
Error Or - This enum can be used to represent errors that can either be an EFuncError or another error type.
EFuncError
s can be converted to EFuncErrorOr using the ? operator. - Error
- Interpret
Error
Traits§
- Module
Loader - The embedder needs to implement this trait to specify how to resolve import paths
- ToNeptune
Value - Types that can be converted to Neptune values implement this trait Example: