Struct game_features::EffectorDefinitions [−][src]
pub struct EffectorDefinitions<K, E: Hash + Eq> { pub defs: HashMap<E, EffectorDefinition<K, E>>, }
Expand description
Holds the definitions of the stat effectors.
Fields
defs: HashMap<E, EffectorDefinition<K, E>>
Expand description
The definitions.
Implementations
impl<K, E: Hash + Eq> EffectorDefinitions<K, E>
[src]
impl<K, E: Hash + Eq> EffectorDefinitions<K, E>
[src]pub fn new(defs: HashMap<E, EffectorDefinition<K, E>>) -> Self
[src]
pub fn new(defs: HashMap<E, EffectorDefinition<K, E>>) -> Self
[src]Constructs a new EffectorDefinitions
.
Trait Implementations
impl<K: Clone, E: Clone + Hash + Eq> Clone for EffectorDefinitions<K, E>
[src]
impl<K: Clone, E: Clone + Hash + Eq> Clone for EffectorDefinitions<K, E>
[src]fn clone(&self) -> EffectorDefinitions<K, E>
[src]
fn clone(&self) -> EffectorDefinitions<K, E>
[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<K, E: Hash + Eq> Default for EffectorDefinitions<K, E>
[src]
impl<K, E: Hash + Eq> Default for EffectorDefinitions<K, E>
[src]impl<'de, K, E: Hash + Eq> Deserialize<'de> for EffectorDefinitions<K, E> where
K: Deserialize<'de>,
E: Deserialize<'de>,
[src]
impl<'de, K, E: Hash + Eq> Deserialize<'de> for EffectorDefinitions<K, E> where
K: Deserialize<'de>,
E: Deserialize<'de>,
[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
Auto Trait Implementations
impl<K, E> RefUnwindSafe for EffectorDefinitions<K, E> where
E: RefUnwindSafe,
K: RefUnwindSafe,
E: RefUnwindSafe,
K: RefUnwindSafe,
impl<K, E> Send for EffectorDefinitions<K, E> where
E: Send,
K: Send,
E: Send,
K: Send,
impl<K, E> Sync for EffectorDefinitions<K, E> where
E: Sync,
K: Sync,
E: Sync,
K: Sync,
impl<K, E> Unpin for EffectorDefinitions<K, E> where
E: Unpin,
K: Unpin,
E: Unpin,
K: Unpin,
impl<K, E> UnwindSafe for EffectorDefinitions<K, E> where
E: UnwindSafe,
K: UnwindSafe,
E: UnwindSafe,
K: UnwindSafe,
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>,