Struct rhai::ScriptFnDef [−][src]
pub struct ScriptFnDef {
pub name: ImmutableString,
pub access: FnAccess,
pub params: StaticVec<String>,
pub externals: HashSet<String>,
pub body: Stmt,
pub pos: Position,
pub lib: Option<Rc<Module>>,
}
Expand description
[INTERNALS] A type containing information on a scripted function.
Exported under the internals
feature only.
WARNING
This type is volatile and may change.
Fields
name: ImmutableString
Function name.
access: FnAccess
Function access mode.
params: StaticVec<String>
Names of function parameters.
externals: HashSet<String>
Access to external variables.
body: Stmt
Function body.
pos: Position
Position of the function definition.
lib: Option<Rc<Module>>
Encapsulated running environment, if any.
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for ScriptFnDef
impl !Send for ScriptFnDef
impl !Sync for ScriptFnDef
impl Unpin for ScriptFnDef
impl !UnwindSafe for ScriptFnDef
Blanket Implementations
Mutably borrows from an owned value. Read more