pub struct LuaExtConfig { /* private fields */ }Expand description
A generic key-value configuration store for LuaExt.
Implementations§
Source§impl LuaExtConfig
impl LuaExtConfig
pub fn new() -> Self
pub fn set(&mut self, key: impl Into<String>, value: impl Into<String>)
pub fn get(&self, key: &str) -> Option<&str>
pub fn get_bool(&self, key: &str) -> bool
pub fn get_int(&self, key: &str) -> Option<i64>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for LuaExtConfig
impl Clone for LuaExtConfig
Source§fn clone(&self) -> LuaExtConfig
fn clone(&self) -> LuaExtConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LuaExtConfig
impl Debug for LuaExtConfig
Source§impl Default for LuaExtConfig
impl Default for LuaExtConfig
Source§fn default() -> LuaExtConfig
fn default() -> LuaExtConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LuaExtConfig
impl RefUnwindSafe for LuaExtConfig
impl Send for LuaExtConfig
impl Sync for LuaExtConfig
impl Unpin for LuaExtConfig
impl UnsafeUnpin for LuaExtConfig
impl UnwindSafe for LuaExtConfig
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