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