Struct rhai::NativeCallContextStore
source · pub struct NativeCallContextStore {
pub fn_name: String,
pub source: Option<String>,
pub global: GlobalRuntimeState,
pub pos: Position,
}
👎Deprecated: This type is NOT deprecated, but it is considered volatile and may change in the future.
Expand description
(internals) Context of a native Rust function call.
Exported under the internals
feature only.
WARNING - Volatile Type
This type is volatile and may change in the future.
Fields§
§fn_name: String
👎Deprecated: This type is NOT deprecated, but it is considered volatile and may change in the future.
Name of function called.
source: Option<String>
👎Deprecated: This type is NOT deprecated, but it is considered volatile and may change in the future.
Function source, if any.
global: GlobalRuntimeState
👎Deprecated: This type is NOT deprecated, but it is considered volatile and may change in the future.
The current GlobalRuntimeState
, if any.
pos: Position
👎Deprecated: This type is NOT deprecated, but it is considered volatile and may change in the future.
Position of the function call.
Implementations§
source§impl NativeCallContextStore
impl NativeCallContextStore
sourcepub fn create_context<'a>(&'a self, engine: &'a Engine) -> NativeCallContext<'a>
👎Deprecated: This API is NOT deprecated, but it is considered volatile and may change in the future.
pub fn create_context<'a>(&'a self, engine: &'a Engine) -> NativeCallContext<'a>
Create a NativeCallContext
from a NativeCallContextStore
.
WARNING - Unstable API
This API is volatile and may change in the future.
Trait Implementations§
source§impl Clone for NativeCallContextStore
impl Clone for NativeCallContextStore
source§fn clone(&self) -> NativeCallContextStore
fn clone(&self) -> NativeCallContextStore
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more