pub enum EnchantmentOptions {
Tag(Identifier),
List(&'static [Identifier]),
}Expand description
Options for selecting enchantments - either a tag reference or explicit list.
Variants§
Tag(Identifier)
Reference to an enchantment tag (e.g., “on_random_loot”).
List(&'static [Identifier])
Explicit list of enchantment IDs.
Trait Implementations§
Source§impl Clone for EnchantmentOptions
impl Clone for EnchantmentOptions
Source§fn clone(&self) -> EnchantmentOptions
fn clone(&self) -> EnchantmentOptions
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 moreAuto Trait Implementations§
impl Freeze for EnchantmentOptions
impl RefUnwindSafe for EnchantmentOptions
impl Send for EnchantmentOptions
impl Sync for EnchantmentOptions
impl Unpin for EnchantmentOptions
impl UnsafeUnpin for EnchantmentOptions
impl UnwindSafe for EnchantmentOptions
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