Enum freenukum::savegame::StorableInventoryItem
source · [−]pub enum StorableInventoryItem {
Boot,
Glove,
Clamp,
}
Variants
Boot
Glove
Clamp
Trait Implementations
sourceimpl Clone for StorableInventoryItem
impl Clone for StorableInventoryItem
sourcefn clone(&self) -> StorableInventoryItem
fn clone(&self) -> StorableInventoryItem
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for StorableInventoryItem
impl Debug for StorableInventoryItem
sourceimpl<'de> Deserialize<'de> for StorableInventoryItem
impl<'de> Deserialize<'de> for StorableInventoryItem
sourcefn 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
sourceimpl From<StorableInventoryItem> for InventoryItem
impl From<StorableInventoryItem> for InventoryItem
sourcefn from(item: StorableInventoryItem) -> Self
fn from(item: StorableInventoryItem) -> Self
Converts to this type from the input type.
sourceimpl Hash for StorableInventoryItem
impl Hash for StorableInventoryItem
sourceimpl Ord for StorableInventoryItem
impl Ord for StorableInventoryItem
sourcefn cmp(&self, other: &StorableInventoryItem) -> Ordering
fn cmp(&self, other: &StorableInventoryItem) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialOrd<StorableInventoryItem> for StorableInventoryItem
impl PartialOrd<StorableInventoryItem> for StorableInventoryItem
sourcefn partial_cmp(&self, other: &StorableInventoryItem) -> Option<Ordering>
fn partial_cmp(&self, other: &StorableInventoryItem) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl Serialize for StorableInventoryItem
impl Serialize for StorableInventoryItem
sourceimpl TryFrom<InventoryItem> for StorableInventoryItem
impl TryFrom<InventoryItem> for StorableInventoryItem
sourcefn try_from(item: InventoryItem) -> Result<StorableInventoryItem, Self::Error>
fn try_from(item: InventoryItem) -> Result<StorableInventoryItem, Self::Error>
Performs the conversion.
impl Copy for StorableInventoryItem
impl Eq for StorableInventoryItem
impl StructuralEq for StorableInventoryItem
impl StructuralPartialEq for StorableInventoryItem
Auto Trait Implementations
impl RefUnwindSafe for StorableInventoryItem
impl Send for StorableInventoryItem
impl Sync for StorableInventoryItem
impl Unpin for StorableInventoryItem
impl UnwindSafe for StorableInventoryItem
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more