pub struct Searcher(/* private fields */);
Expand description
A piece of UserData
that acts like a Lua searcher.
When called as a function with a single string parameter, attempts to load
(but not execute) a module by that name. If no module is found, returns nil.
Trait Implementations§
Source§impl UserData for Searcher
impl UserData for Searcher
Source§fn add_methods<'lua, M: UserDataMethods<'lua, Self>>(methods: &mut M)
fn add_methods<'lua, M: UserDataMethods<'lua, Self>>(methods: &mut M)
Adds custom methods and operators specific to this userdata.
Auto Trait Implementations§
impl Freeze for Searcher
impl RefUnwindSafe for Searcher
impl Send for Searcher
impl Sync for Searcher
impl Unpin for Searcher
impl UnwindSafe for Searcher
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<'lua, T> ToLuaMulti<'lua> for Twhere
T: ToLua<'lua>,
impl<'lua, T> ToLuaMulti<'lua> for Twhere
T: ToLua<'lua>,
Source§fn to_lua_multi(self, lua: Context<'lua>) -> Result<MultiValue<'lua>, Error>
fn to_lua_multi(self, lua: Context<'lua>) -> Result<MultiValue<'lua>, Error>
Performs the conversion.