Struct LootTool
#[non_exhaustive]pub struct LootTool {
pub item: ItemKey,
pub enchantments: Vec<(String, i32)>,
}Expand description
Tool facts supplied by the item engine to a loot roll.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.item: ItemKeyResolved tool item.
enchantments: Vec<(String, i32)>Enchantment identifiers and levels.
Implementations§
Trait Implementations§
impl StructuralPartialEq for LootTool
Auto Trait Implementations§
impl Freeze for LootTool
impl RefUnwindSafe for LootTool
impl Send for LootTool
impl Sync for LootTool
impl Unpin for LootTool
impl UnsafeUnpin for LootTool
impl UnwindSafe for LootTool
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