pub struct NormalCost {
pub silver: u64,
pub mushrooms: u16,
}
Expand description
The cost of something
Fields§
§silver: u64
The amount of silver something costs
mushrooms: u16
The amount of mushrooms something costs
Trait Implementations§
Source§impl Clone for NormalCost
impl Clone for NormalCost
Source§fn clone(&self) -> NormalCost
fn clone(&self) -> NormalCost
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for NormalCost
impl Debug for NormalCost
Source§impl Default for NormalCost
impl Default for NormalCost
Source§fn default() -> NormalCost
fn default() -> NormalCost
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NormalCost
impl<'de> Deserialize<'de> for NormalCost
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for NormalCost
impl Ord for NormalCost
Source§fn cmp(&self, other: &NormalCost) -> Ordering
fn cmp(&self, other: &NormalCost) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for NormalCost
impl PartialEq for NormalCost
Source§impl PartialOrd for NormalCost
impl PartialOrd for NormalCost
Source§impl Serialize for NormalCost
impl Serialize for NormalCost
impl Copy for NormalCost
impl Eq for NormalCost
impl StructuralPartialEq for NormalCost
Auto Trait Implementations§
impl Freeze for NormalCost
impl RefUnwindSafe for NormalCost
impl Send for NormalCost
impl Sync for NormalCost
impl Unpin for NormalCost
impl UnwindSafe for NormalCost
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.