ItemDetail::tool

This commit is contained in:
jake 2021-12-10 13:15:33 -07:00
parent d4fc915164
commit 070735edbf

View File

@ -162,6 +162,13 @@ impl ItemDetail {
_ => None,
}
}
pub fn tool(&self) -> Option<&tool::Tool> {
match self {
ItemDetail::Tool(tool) => Some(tool),
_ => None,
}
}
}
#[derive(Clone, Debug)]