Struct EnchantmentKey
pub struct EnchantmentKey(/* private fields */);Expand description
An enchantment (minecraft:sharpness) in the data-loaded enchantment
registry, in registry order. Keys keep their identity across reloads; a
reload changes which entries the table lists, not what an existing slot names.
Implementations§
§impl EnchantmentKey
impl EnchantmentKey
Trait Implementations§
§impl Clone for EnchantmentKey
impl Clone for EnchantmentKey
§fn clone(&self) -> EnchantmentKey
fn clone(&self) -> EnchantmentKey
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 EnchantmentKey
§impl Debug for EnchantmentKey
impl Debug for EnchantmentKey
impl Eq for EnchantmentKey
§impl Hash for EnchantmentKey
impl Hash for EnchantmentKey
§impl PartialEq for EnchantmentKey
impl PartialEq for EnchantmentKey
impl StructuralPartialEq for EnchantmentKey
Auto Trait Implementations§
impl Freeze for EnchantmentKey
impl RefUnwindSafe for EnchantmentKey
impl Send for EnchantmentKey
impl Sync for EnchantmentKey
impl Unpin for EnchantmentKey
impl UnsafeUnpin for EnchantmentKey
impl UnwindSafe for EnchantmentKey
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