pub enum PlayerItemPlace {
Equipment = 1,
MainInventory = 2,
ExtendedInventory = 5,
}Expand description
All the parts of ItemPlace, that are owned by the player
Variants§
Implementations§
Source§impl PlayerItemPlace
impl PlayerItemPlace
Sourcepub fn item_position(&self) -> ItemPlace
pub fn item_position(&self) -> ItemPlace
InventoryType is a subset of ItemPlace. This is a convenient
function to convert between them
Trait Implementations§
Source§impl Clone for PlayerItemPlace
impl Clone for PlayerItemPlace
Source§fn clone(&self) -> PlayerItemPlace
fn clone(&self) -> PlayerItemPlace
Returns a duplicate 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 PlayerItemPlace
impl Debug for PlayerItemPlace
Source§impl<'de> Deserialize<'de> for PlayerItemPlace
impl<'de> Deserialize<'de> for PlayerItemPlace
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 Hash for PlayerItemPlace
impl Hash for PlayerItemPlace
Source§impl IntoEnumIterator for PlayerItemPlace
impl IntoEnumIterator for PlayerItemPlace
type Iterator = PlayerItemPlaceIter
fn iter() -> PlayerItemPlaceIter ⓘ
Source§impl PartialEq for PlayerItemPlace
impl PartialEq for PlayerItemPlace
Source§impl Serialize for PlayerItemPlace
impl Serialize for PlayerItemPlace
impl Copy for PlayerItemPlace
impl Eq for PlayerItemPlace
impl StructuralPartialEq for PlayerItemPlace
Auto Trait Implementations§
impl Freeze for PlayerItemPlace
impl RefUnwindSafe for PlayerItemPlace
impl Send for PlayerItemPlace
impl Sync for PlayerItemPlace
impl Unpin for PlayerItemPlace
impl UnwindSafe for PlayerItemPlace
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.