pub struct TypeChartEntry {
pub atk: String,
pub def: String,
pub mult: Rational,
}Expand description
One (atk, def, mult) chart edge (doc 12 §2). mult is an integer rational
[num, den]; [2,1] = super-effective, [1,2] = resisted, [0,1] = immune.
Omitted pairs default to [1,1] (neutral) at lookup time.
Fields§
§atk: StringAttacking type name (must be in types:).
def: StringDefending type name (must be in types:).
mult: Rational[num, den] rational.
Trait Implementations§
Source§impl Clone for TypeChartEntry
impl Clone for TypeChartEntry
Source§fn clone(&self) -> TypeChartEntry
fn clone(&self) -> TypeChartEntry
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 moreSource§impl Debug for TypeChartEntry
impl Debug for TypeChartEntry
Source§impl<'de> Deserialize<'de> for TypeChartEntry
impl<'de> Deserialize<'de> for TypeChartEntry
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
Auto Trait Implementations§
impl Freeze for TypeChartEntry
impl RefUnwindSafe for TypeChartEntry
impl Send for TypeChartEntry
impl Sync for TypeChartEntry
impl Unpin for TypeChartEntry
impl UnsafeUnpin for TypeChartEntry
impl UnwindSafe for TypeChartEntry
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