pub enum InventorySection {
Worn,
Person,
Nearby,
}Expand description
Broad section of the inventory browser a row belongs to (drives the grouped “Worn” / “On you” / “Nearby chest” headers in the UI).
Variants§
Worn
Inside a worn body-slot item (backpack, belt w/ clipped pouches, armor).
Person
Loose on your person — not worn, not inside a placed chest.
Nearby
Inside a placed chest within reach.
Trait Implementations§
Source§impl Clone for InventorySection
impl Clone for InventorySection
Source§fn clone(&self) -> InventorySection
fn clone(&self) -> InventorySection
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 moreimpl Copy for InventorySection
Source§impl Debug for InventorySection
impl Debug for InventorySection
impl Eq for InventorySection
Source§impl PartialEq for InventorySection
impl PartialEq for InventorySection
impl StructuralPartialEq for InventorySection
Auto Trait Implementations§
impl Freeze for InventorySection
impl RefUnwindSafe for InventorySection
impl Send for InventorySection
impl Sync for InventorySection
impl Unpin for InventorySection
impl UnsafeUnpin for InventorySection
impl UnwindSafe for InventorySection
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.