Move CallableFunction to own file.

This commit is contained in:
Stephen Chung
2021-12-20 22:13:00 +08:00
parent 57d7985015
commit b4756b4575
7 changed files with 265 additions and 255 deletions

View File

@@ -1,9 +1,9 @@
//! Implement script function-calling mechanism for [`Engine`].
#![cfg(not(feature = "no_function"))]
use super::call::FnCallArgs;
use crate::ast::ScriptFnDef;
use crate::engine::{EvalState, Imports};
use crate::func::call::FnCallArgs;
use crate::r#unsafe::unsafe_cast_var_name_to_lifetime;
use crate::{Dynamic, Engine, EvalAltResult, Module, Position, RhaiResult, Scope, StaticVec};
use std::mem;