Struct esl::Attributes
source · pub struct Attributes<T> {
pub strength: T,
pub intelligence: T,
pub willpower: T,
pub agility: T,
pub speed: T,
pub endurance: T,
pub personality: T,
pub luck: T,
}
Fields§
§strength: T
§intelligence: T
§willpower: T
§agility: T
§speed: T
§endurance: T
§personality: T
§luck: T
Trait Implementations§
source§impl<T: Clone> Clone for Attributes<T>
impl<T: Clone> Clone for Attributes<T>
source§fn clone(&self) -> Attributes<T>
fn clone(&self) -> Attributes<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T: Debug> Debug for Attributes<T>
impl<T: Debug> Debug for Attributes<T>
source§impl<'de, T> Deserialize<'de> for Attributes<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for Attributes<T>where T: Deserialize<'de>,
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<T> Index<Attribute> for Attributes<T>
impl<T> Index<Attribute> for Attributes<T>
source§impl<T> IndexMut<Attribute> for Attributes<T>
impl<T> IndexMut<Attribute> for Attributes<T>
source§impl<T: PartialEq> PartialEq for Attributes<T>
impl<T: PartialEq> PartialEq for Attributes<T>
source§fn eq(&self, other: &Attributes<T>) -> bool
fn eq(&self, other: &Attributes<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<T> Serialize for Attributes<T>where
T: Serialize,
impl<T> Serialize for Attributes<T>where T: Serialize,
source§impl From<Attributes<u32>> for Field
impl From<Attributes<u32>> for Field
source§fn from(v: Attributes<u32>) -> Self
fn from(v: Attributes<u32>) -> Self
Converts to this type from the input type.
impl<T: Eq> Eq for Attributes<T>
impl<T> StructuralEq for Attributes<T>
impl<T> StructuralPartialEq for Attributes<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Attributes<T>where T: RefUnwindSafe,
impl<T> Send for Attributes<T>where T: Send,
impl<T> Sync for Attributes<T>where T: Sync,
impl<T> Unpin for Attributes<T>where T: Unpin,
impl<T> UnwindSafe for Attributes<T>where T: UnwindSafe,
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