pub struct SelectionModeFlags {
pub flags: &'static [&'static str],
}Expand description
A set of flags on a selection tool that define how entities and tiles are selected. Active flags are in the dictionary as true, while inactive flags aren’t present at all.
Factorio flag set: active keys present as true in a Lua table.
Construct with flags: &["left", "right"]. Lowers to
{ ["left"] = true, ["right"] = true }.
Fields§
§flags: &'static [&'static str]Trait Implementations§
Source§impl Clone for SelectionModeFlags
impl Clone for SelectionModeFlags
Source§fn clone(&self) -> SelectionModeFlags
fn clone(&self) -> SelectionModeFlags
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 SelectionModeFlags
Source§impl Debug for SelectionModeFlags
impl Debug for SelectionModeFlags
Source§impl Default for SelectionModeFlags
impl Default for SelectionModeFlags
Source§fn default() -> SelectionModeFlags
fn default() -> SelectionModeFlags
Returns the “default value” for a type. Read more
impl Eq for SelectionModeFlags
Source§impl PartialEq for SelectionModeFlags
impl PartialEq for SelectionModeFlags
impl StructuralPartialEq for SelectionModeFlags
Auto Trait Implementations§
impl Freeze for SelectionModeFlags
impl RefUnwindSafe for SelectionModeFlags
impl Send for SelectionModeFlags
impl Sync for SelectionModeFlags
impl Unpin for SelectionModeFlags
impl UnsafeUnpin for SelectionModeFlags
impl UnwindSafe for SelectionModeFlags
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