Skip to main content

install

Function install 

Source
pub fn install(lua: &Lua) -> Result<()>
Expand description

Install the lshape.* modules into the given Lua state’s package.preload table. After this returns, Lua code can require("lshape") / require("lshape.t") / etc. normally.

This does not call require itself; modules stay lazy until the host Lua code pulls them in.