Skip to main content

harn_vm/value/
mod.rs

1mod build;
2mod core;
3mod env;
4mod error;
5mod handles;
6pub(crate) mod recursion;
7mod set;
8mod storage_json;
9mod structural;
10
11pub type VmMutex<T> = parking_lot::Mutex<T>;
12
13pub use build::{DictRetain, VmDictExt};
14pub use core::{
15    intern_key, string_char_count, struct_fields_to_map, DictMap, HarnStr, StructInstanceData,
16    StructLayout, VmAsyncBuiltinFn, VmBuiltinFn, VmBuiltinRefId, VmEnumVariant, VmValue,
17};
18pub use env::{closest_match, ModuleFunctionRegistry, ModuleState, VmClosure, VmEnv};
19pub use error::{
20    categorized_error, classify_error_message, error_to_category, ArgTypeMismatchError,
21    ArityExpect, ArityMismatchError, DeadlockError, ErrorCategory, VmError,
22};
23pub use handles::{
24    VmAtomicHandle, VmChannelCloseState, VmChannelHandle, VmGenerator, VmJoinHandle, VmRange,
25    VmRngHandle, VmStream, VmStreamCancel, VmSyncPermitHandle, VmTaskHandle,
26};
27pub use set::VmSet;
28pub(crate) use storage_json::vm_to_storage_json;
29pub use structural::{
30    compare_values, dedup_values, try_compare_values, value_identity_key,
31    value_structural_hash_key, values_equal, values_identical,
32};
33
34#[cfg(test)]
35mod tests;