pub struct LuaConfig {
pub data: LuaTable,
/* private fields */
}
Fields§
§data: LuaTable
Implementations§
Source§impl LuaConfig
impl LuaConfig
pub fn from_string(file: String) -> Self
pub fn with_version(self, version: &str) -> Self
pub fn from_file(path: &str) -> Result<Self, Box<dyn Error>>
pub fn with_default(self, default: &[u8]) -> Result<Self, Box<dyn Error>>
pub fn execute(self) -> Result<Self, Box<dyn Error>>
pub fn get(&self, key: &str) -> Option<&LuaType>
pub fn get_lua_type(&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