pub struct EntityPrototypeFlags {
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 EntityPrototypeFlags
impl Clone for EntityPrototypeFlags
Source§fn clone(&self) -> EntityPrototypeFlags
fn clone(&self) -> EntityPrototypeFlags
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 EntityPrototypeFlags
Source§impl Debug for EntityPrototypeFlags
impl Debug for EntityPrototypeFlags
Source§impl Default for EntityPrototypeFlags
impl Default for EntityPrototypeFlags
Source§fn default() -> EntityPrototypeFlags
fn default() -> EntityPrototypeFlags
Returns the “default value” for a type. Read more
impl Eq for EntityPrototypeFlags
Source§impl PartialEq for EntityPrototypeFlags
impl PartialEq for EntityPrototypeFlags
impl StructuralPartialEq for EntityPrototypeFlags
Auto Trait Implementations§
impl Freeze for EntityPrototypeFlags
impl RefUnwindSafe for EntityPrototypeFlags
impl Send for EntityPrototypeFlags
impl Sync for EntityPrototypeFlags
impl Unpin for EntityPrototypeFlags
impl UnsafeUnpin for EntityPrototypeFlags
impl UnwindSafe for EntityPrototypeFlags
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