pub use super::CallableFunction;
use super::FnCallArgs;
pub use crate::{
Dynamic, Engine, EvalAltResult, FnAccess, FnNamespace, ImmutableString, Module,
NativeCallContext, Position,
};
#[cfg(feature = "no_std")]
use std::prelude::v1::*;
pub use std::{any::TypeId, mem};
pub type RhaiResult = crate::RhaiResult;
#[cfg(not(features = "no_module"))]
pub use rhai_codegen::*;
#[cfg(features = "no_module")]
pub use rhai_codegen::{export_fn, register_exported_fn};
pub trait PluginFunction {
fn call(&self, context: Option<NativeCallContext>, args: &mut FnCallArgs) -> RhaiResult;
#[must_use]
fn is_method_call(&self) -> bool;
#[must_use]
fn has_context(&self) -> bool;
#[inline(always)]
#[must_use]
fn is_pure(&self) -> bool {
true
}
}