pub struct EnchantCost {
pub a: i16,
pub b: i16,
}Expand description
Linear enchanting cost a * level + b.
Fields§
§a: i16Per-level factor.
b: i16Offset.
Trait Implementations§
Source§impl Clone for EnchantCost
impl Clone for EnchantCost
impl Copy for EnchantCost
Source§impl Debug for EnchantCost
impl Debug for EnchantCost
impl Eq for EnchantCost
Source§impl PartialEq for EnchantCost
impl PartialEq for EnchantCost
impl StructuralPartialEq for EnchantCost
Auto Trait Implementations§
impl Forget for EnchantCost
impl Freeze for EnchantCost
impl RefUnwindSafe for EnchantCost
impl Send for EnchantCost
impl Sync for EnchantCost
impl Unpin for EnchantCost
impl UnsafeUnpin for EnchantCost
impl UnwindSafe for EnchantCost
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