pub struct EnchantmentCost {
pub base: i32,
pub per_level_above_first: i32,
}Expand description
Enchanting cost formula: base + per_level_above_first * (level - 1).
Fields§
§base: i32§per_level_above_first: i32Trait Implementations§
Source§impl Clone for EnchantmentCost
impl Clone for EnchantmentCost
Source§fn clone(&self) -> EnchantmentCost
fn clone(&self) -> EnchantmentCost
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 EnchantmentCost
Auto Trait Implementations§
impl Freeze for EnchantmentCost
impl RefUnwindSafe for EnchantmentCost
impl Send for EnchantmentCost
impl Sync for EnchantmentCost
impl Unpin for EnchantmentCost
impl UnsafeUnpin for EnchantmentCost
impl UnwindSafe for EnchantmentCost
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