pub struct ModSettingValue {
pub value: LuaAny,
}Expand description
Typed Factorio mod-settings tables (settings.startup, …).
Prefer SettingsDictionary::get_bool / [get_int] / [get_double] /
[get_string] over indexing into opaque values.
One mod setting entry (settings.startup["name"]).
Fields§
§value: LuaAnyTrait Implementations§
Source§impl Clone for ModSettingValue
impl Clone for ModSettingValue
Source§fn clone(&self) -> ModSettingValue
fn clone(&self) -> ModSettingValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ModSettingValue
Source§impl Debug for ModSettingValue
impl Debug for ModSettingValue
impl Eq for ModSettingValue
Source§impl PartialEq for ModSettingValue
impl PartialEq for ModSettingValue
impl StructuralPartialEq for ModSettingValue
Auto Trait Implementations§
impl Freeze for ModSettingValue
impl RefUnwindSafe for ModSettingValue
impl Send for ModSettingValue
impl Sync for ModSettingValue
impl Unpin for ModSettingValue
impl UnsafeUnpin for ModSettingValue
impl UnwindSafe for ModSettingValue
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