Struct rpg::item::ItemInfluence
[−]
[src]
pub struct ItemInfluence { pub attribute: Attribute, pub amount: AttributeValue, }
The influence an item can have on a certain attribute
Fields
attribute: Attribute
The attribute that is influenced
amount: AttributeValue
The amount about which the attribute is influenced
Methods
impl ItemInfluence
[src]
fn new(attribute: Attribute, amount: AttributeValue) -> ItemInfluence
Creates a new ItemInfluence
object
Trait Implementations
impl Clone for ItemInfluence
[src]
fn clone(&self) -> ItemInfluence
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for ItemInfluence
[src]
fn eq(&self, __arg_0: &ItemInfluence) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ItemInfluence) -> bool
This method tests for !=
.