Enum sf_api::gamestate::items::ItemPosition
source · pub enum ItemPosition {
Equipment = 1,
MainInventory = 2,
WeaponShop = 3,
MageShop = 4,
FortressChest = 5,
}
Expand description
All positions, that items can be dragged to excluding companions
Variants§
Trait Implementations§
source§impl Clone for ItemPosition
impl Clone for ItemPosition
source§fn clone(&self) -> ItemPosition
fn clone(&self) -> ItemPosition
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ItemPosition
impl Debug for ItemPosition
source§impl<'de> Deserialize<'de> for ItemPosition
impl<'de> Deserialize<'de> for ItemPosition
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for ItemPosition
impl PartialEq for ItemPosition
source§fn eq(&self, other: &ItemPosition) -> bool
fn eq(&self, other: &ItemPosition) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ItemPosition
impl Serialize for ItemPosition
impl Copy for ItemPosition
impl Eq for ItemPosition
impl StructuralPartialEq for ItemPosition
Auto Trait Implementations§
impl Freeze for ItemPosition
impl RefUnwindSafe for ItemPosition
impl Send for ItemPosition
impl Sync for ItemPosition
impl Unpin for ItemPosition
impl UnwindSafe for ItemPosition
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.