pub struct EnergySource {
pub type: &'static str,
pub usage_priority: Option<&'static str>,
}Expand description
Simplified entity energy source (type + optional priority / buffer fields).
Fields§
§type: &'static strFactorio energy source type (e.g. "electric", "burner", "void").
usage_priority: Option<&'static str>Electric usage priority (e.g. "secondary-input").
Trait Implementations§
Source§impl Clone for EnergySource
impl Clone for EnergySource
Source§fn clone(&self) -> EnergySource
fn clone(&self) -> EnergySource
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 EnergySource
Source§impl Debug for EnergySource
impl Debug for EnergySource
Source§impl Default for EnergySource
impl Default for EnergySource
Source§fn default() -> EnergySource
fn default() -> EnergySource
Returns the “default value” for a type. Read more
impl Eq for EnergySource
Source§impl PartialEq for EnergySource
impl PartialEq for EnergySource
impl StructuralPartialEq for EnergySource
Auto Trait Implementations§
impl Freeze for EnergySource
impl RefUnwindSafe for EnergySource
impl Send for EnergySource
impl Sync for EnergySource
impl Unpin for EnergySource
impl UnsafeUnpin for EnergySource
impl UnwindSafe for EnergySource
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