pub struct ToolRule {
pub blocks: BlockSet,
pub speed: Option<f32>,
pub correct_for_drops: Option<bool>,
}Expand description
One rule of a tool component.
Fields§
§blocks: BlockSetThe blocks the rule applies to.
speed: Option<f32>Mining speed on those blocks.
correct_for_drops: Option<bool>Whether the tool is correct for their drops.
Trait Implementations§
impl Copy for ToolRule
impl StructuralPartialEq for ToolRule
Auto Trait Implementations§
impl Forget for ToolRule
impl Freeze for ToolRule
impl Move for ToolRule
impl RefUnwindSafe for ToolRule
impl Send for ToolRule
impl Sync for ToolRule
impl Unpin for ToolRule
impl UnsafeUnpin for ToolRule
impl UnwindSafe for ToolRule
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