ClosureSearcher.modules HashMap<String, ...>
This commit is contained in:
@@ -153,7 +153,7 @@ pub struct ClosureSearcher {
|
||||
/// Closures must return an `rlua::Result`-wrapped `Function`. This `Function`
|
||||
/// acts as the module loader.
|
||||
modules: HashMap<
|
||||
&'static str,
|
||||
String,
|
||||
Box<
|
||||
dyn for<'ctx> Fn(Context<'ctx>, Table<'ctx>, &str) -> rlua::Result<Function<'ctx>>
|
||||
+ Send,
|
||||
@@ -166,7 +166,7 @@ pub struct ClosureSearcher {
|
||||
impl ClosureSearcher {
|
||||
pub fn new(
|
||||
modules: HashMap<
|
||||
&'static str,
|
||||
String,
|
||||
Box<
|
||||
dyn for<'ctx> Fn(Context<'ctx>, Table<'ctx>, &str) -> rlua::Result<Function<'ctx>>
|
||||
+ Send,
|
||||
@@ -232,7 +232,7 @@ pub trait AddSearcher {
|
||||
fn add_closure_searcher(
|
||||
&self,
|
||||
modules: HashMap<
|
||||
&'static str,
|
||||
String,
|
||||
Box<
|
||||
dyn for<'ctx> Fn(Context<'ctx>, Table<'ctx>, &str) -> rlua::Result<Function<'ctx>>
|
||||
+ Send,
|
||||
@@ -297,7 +297,7 @@ impl<'a> AddSearcher for Context<'a> {
|
||||
fn add_closure_searcher(
|
||||
&self,
|
||||
modules: HashMap<
|
||||
&'static str,
|
||||
String,
|
||||
Box<
|
||||
dyn for<'ctx> Fn(Context<'ctx>, Table<'ctx>, &str) -> rlua::Result<Function<'ctx>>
|
||||
+ Send,
|
||||
|
Reference in New Issue
Block a user