pub struct ItemPrototypeFlags {
pub flags: &'static [&'static str],
}Expand description
A set of flags. Active flags are in the dictionary as true, while inactive flags aren’t present at all.
By default, none of these flags are set.
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 ItemPrototypeFlags
impl Clone for ItemPrototypeFlags
Source§fn clone(&self) -> ItemPrototypeFlags
fn clone(&self) -> ItemPrototypeFlags
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 ItemPrototypeFlags
Source§impl Debug for ItemPrototypeFlags
impl Debug for ItemPrototypeFlags
Source§impl Default for ItemPrototypeFlags
impl Default for ItemPrototypeFlags
Source§fn default() -> ItemPrototypeFlags
fn default() -> ItemPrototypeFlags
Returns the “default value” for a type. Read more
impl Eq for ItemPrototypeFlags
Source§impl PartialEq for ItemPrototypeFlags
impl PartialEq for ItemPrototypeFlags
impl StructuralPartialEq for ItemPrototypeFlags
Auto Trait Implementations§
impl Freeze for ItemPrototypeFlags
impl RefUnwindSafe for ItemPrototypeFlags
impl Send for ItemPrototypeFlags
impl Sync for ItemPrototypeFlags
impl Unpin for ItemPrototypeFlags
impl UnsafeUnpin for ItemPrototypeFlags
impl UnwindSafe for ItemPrototypeFlags
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