fmt doc comments
This commit is contained in:
parent
738b5b150f
commit
6f6c6be1da
@ -7,16 +7,16 @@ use std::path::{Path, PathBuf};
|
||||
|
||||
use crate::types::Result;
|
||||
|
||||
/// Stores Lua modules indexed by module name, and provides an `rlua::MetaMethod`
|
||||
/// to enable `require`ing the stored modules by name in an `rlua::Context`.
|
||||
/// Stores Lua modules indexed by module name, and provides an `rlua::MetaMethod` to
|
||||
/// enable `require`ing the stored modules by name in an `rlua::Context`.
|
||||
struct Searcher {
|
||||
/// A `HashMap` of Lua modules in string representation, indexed by module name.
|
||||
///
|
||||
/// Uses `Cow<'static, str>` types to allow both `&'static str` and owned `String`.
|
||||
modules: HashMap<Cow<'static, str>, Cow<'static, str>>,
|
||||
|
||||
/// An `rlua::RegistryKey` whose value is the Lua environment within which the
|
||||
/// user made the request to instantiate a `Searcher` for `modules`.
|
||||
/// An `rlua::RegistryKey` whose value is the Lua environment within which the user
|
||||
/// made the request to instantiate a `Searcher` for `modules`.
|
||||
globals: RegistryKey,
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user