pub enum InventoryLocation {
Root,
Worn {
slot: BodySlot,
},
Placed {
container_id: String,
},
}Expand description
Where an item lives for MoveItem / open-container UX.
Variants§
Root
Loose on-person inventory (not inside a worn/placed container).
Worn
Inside a worn item (backpack contents, or a pouch clipped onto a worn belt).
Placed
Inside a world-placed container.
Trait Implementations§
Source§impl Clone for InventoryLocation
impl Clone for InventoryLocation
Source§fn clone(&self) -> InventoryLocation
fn clone(&self) -> InventoryLocation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 InventoryLocation
impl Debug for InventoryLocation
Source§impl<'de> Deserialize<'de> for InventoryLocation
impl<'de> Deserialize<'de> for InventoryLocation
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 InventoryLocation
impl PartialEq for InventoryLocation
Source§impl Serialize for InventoryLocation
impl Serialize for InventoryLocation
impl StructuralPartialEq for InventoryLocation
Auto Trait Implementations§
impl Freeze for InventoryLocation
impl RefUnwindSafe for InventoryLocation
impl Send for InventoryLocation
impl Sync for InventoryLocation
impl Unpin for InventoryLocation
impl UnsafeUnpin for InventoryLocation
impl UnwindSafe for InventoryLocation
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