rhai/src/func/mod.rs

30 lines
878 B
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};
pub use call::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,
};
pub use native::{
2022-06-17 17:36:09 +02:00
locked_read, locked_write, 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;