Enum game_features::InventorySizingMode [−][src]
pub enum InventorySizingMode { Fixed { size: usize, }, Dynamic { min_size: usize, max_size: usize, }, }
Expand description
The way the inventory size is handled.
Variants
Expand description
The inventory uses a fixed size.
Show fields
Fields of Fixed
size: usize
Expand description
The size of the inventory.
Expand description
The inventory grows and shrinks depending on the content. Slot restrictions are ignored in this mode.
Show fields
Implementations
impl InventorySizingMode
[src]
impl InventorySizingMode
[src]pub fn new_dynamic(min_size: usize, max_size: usize) -> Self
[src]
pub fn new_dynamic(min_size: usize, max_size: usize) -> Self
[src]Constructs a new InventorySizingMode::Dynamic
.
Trait Implementations
impl Clone for InventorySizingMode
[src]
impl Clone for InventorySizingMode
[src]fn clone(&self) -> InventorySizingMode
[src]
fn clone(&self) -> InventorySizingMode
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for InventorySizingMode
[src]
impl Debug for InventorySizingMode
[src]impl<'de> Deserialize<'de> for InventorySizingMode
[src]
impl<'de> Deserialize<'de> for InventorySizingMode
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl Serialize for InventorySizingMode
[src]
impl Serialize for InventorySizingMode
[src]Auto Trait Implementations
impl RefUnwindSafe for InventorySizingMode
impl Send for InventorySizingMode
impl Sync for InventorySizingMode
impl Unpin for InventorySizingMode
impl UnwindSafe for InventorySizingMode
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,