Struct lua_config::LuaConfig
source · pub struct LuaConfig {
pub path: String,
pub data: HashMap<String, LuaType>,
}Fields§
§path: String§data: HashMap<String, LuaType>Implementations§
source§impl LuaConfig
impl LuaConfig
pub fn from_string(file: String, default: &[u8]) -> Self
pub fn from_file(path: &str, default: &[u8]) -> Self
pub fn init(&mut self, config: String, default: String)
pub fn get<T>(&self, key: &str) -> Option<T>where
T: LuaConvert,
pub fn get_lua_type<T>(&self, key: &str) -> Option<&LuaType>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LuaConfig
impl RefUnwindSafe for LuaConfig
impl Send for LuaConfig
impl Sync for LuaConfig
impl Unpin for LuaConfig
impl UnwindSafe for LuaConfig
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