Struct ezomyte::StashedItem
[−]
[src]
pub struct StashedItem { /* fields omitted */ }
Item placed in a stash tab.
Methods
impl StashedItem
[src]
pub fn item(&self) -> &Item
[src]
The item in question.
Note: StashedItem
can automatically Deref
to the Item
type,
so you can also use the Item
interface directly.
pub fn label(&self) -> Option<&Label>
[src]
Label attached to the item, if any.
pub fn note(&self) -> Option<&str>
[src]
Optional cosmetic note attached to the item.
pub fn exact_price(&self) -> Option<&Price>
[src]
Optional exact price for the item.
pub fn negotiable_price(&self) -> Option<&Price>
[src]
Optional negotiable price for the item.
pub fn position(&self) -> (u64, u64)
[src]
Position of the item ((x, y)
) in the stash tab.
pub fn x(&self) -> u64
[src]
Horizontal offset of the item in the stash tab.
pub fn y(&self) -> u64
[src]
Vertical offset of the item in the stash tab.
pub fn size(&self) -> (u64, u64)
[src]
Dimensions of the item ((width, height)
) in stash tab tiles.
pub fn width(&self) -> u64
[src]
Width of the item in stash tab tiles.
pub fn height(&self) -> u64
[src]
Height of the item in stash tab tiles.
Methods from Deref<Target = Item>
pub fn is_elder(&self) -> bool
[src]
Whether this item has an Elder-influenced base.
pub fn is_shaped(&self) -> bool
[src]
Whether this item has a Shaper-influenced base.
pub fn is_unique(&self) -> bool
[src]
Whether this is a unique item.
pub fn is_identified(&self) -> bool
[src]
Whether this item has been identified (or didn't need identification in the first place).
ⓘImportant traits for Box<W>pub fn mods<'i>(&'i self) -> Box<Iterator<Item = &'i Mod> + 'i>
[src]
Iterate over the item mods, if any.
Trait Implementations
impl Debug for StashedItem
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Deref for StashedItem
[src]
type Target = Item
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
Dereferences the value.
impl<'de> Deserialize<'de> for StashedItem
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more