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, intended for persistence.
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for NativeCallContextStore
impl !Send for NativeCallContextStore
impl !Sync for NativeCallContextStore
impl Unpin for NativeCallContextStore
impl !UnwindSafe for NativeCallContextStore
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Variant for T
impl<T> Variant for T
source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert this
Variant
trait object to &mut dyn Any
.source§fn as_boxed_any(self: Box<T>) -> Box<dyn Any>
fn as_boxed_any(self: Box<T>) -> Box<dyn Any>
Convert this
Variant
trait object to Box<dyn Any>
.