pub struct WeaponEnergyCost { /* private fields */ }

Implementations

The EnergyCost for the shots’ load

The EnergyCost for the shots’ speed

The EnergyCost for the shots’ time

The EnergyCost for the shots’ hull damage

-1 = No damage 0 = No critical damage 3 = 300% critical damage (= 400% total damage)

Returns the amount of additional damage if the chance of a critical strike succeeded

0 = No chance 1 = 100% chance

Returns the chance for an critical strike

The EnergyCost for the shots’ shield damage

-1 = No damage 0 = No critical damage 3 = 300% critical damage (= 400% total damage)

Returns the amount of additional damage if the chance of a critical strike succeeded

0 = No chance 1 = 100% chance

Returns the chance for critical strike

The EnergyCost for the shots’ energy damage

-1 = No damage 0 = No critical damage 3 = 300% critical damage (= 400% total damage)

Returns the amount of additional damage if the chance of a critical strike succeeded

0 = No chance 1 = 100% chance

Returns the chance for a critical strike

Methods from Deref<Target = EnergyCost>

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
The resulting type after dereferencing.
Dereferences the value.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.