rhai/src/func/mod.rs

32 lines
1.0 KiB
Rust
Raw Normal View History

2021-11-13 15:36:23 +01:00
//! Module defining mechanisms to handle function calls in Rhai.
pub mod args;
pub mod builtin;
pub mod call;
2021-12-20 15:13:00 +01:00
pub mod callable_function;
2021-11-13 15:36:23 +01:00
pub mod func;
pub mod hashing;
pub mod native;
pub mod plugin;
pub mod register;
2021-11-29 03:17:04 +01:00
pub mod script;
2021-11-16 05:26:37 +01:00
pub use args::FuncArgs;
pub use builtin::{get_builtin_binary_op_fn, get_builtin_op_assignment_fn};
2022-09-04 12:12:38 +02:00
#[cfg(not(feature = "no_module"))]
pub use call::gen_qualified_fn_call_signature;
pub use call::{gen_fn_call_signature, FnCallArgs};
2021-12-20 15:13:00 +01:00
pub use callable_function::CallableFunction;
2021-11-16 06:42:22 +01:00
#[cfg(not(feature = "no_function"))]
2021-11-16 05:26:37 +01:00
pub use func::Func;
pub use hashing::{
calc_fn_hash, calc_fn_params_hash, calc_qualified_fn_hash, calc_qualified_var_hash,
combine_hashes, get_hasher, StraightHashMap, StraightHashSet,
2021-11-16 05:26:37 +01:00
};
pub use native::{
2022-06-26 08:10:09 +02:00
locked_read, locked_write, shared_get_mut, shared_make_mut, shared_take, shared_take_or_clone,
shared_try_take, FnAny, FnPlugin, IteratorFn, Locked, NativeCallContext, SendSync, Shared,
2021-11-16 05:26:37 +01:00
};
pub use plugin::PluginFunction;
pub use register::RegisterNativeFunction;