[][src]Enum dsa::Quality

pub enum Quality {
    Courage,
    Wisdom,
    Intuition,
    Charisma,
    Dexterity,
    Agility,
    Constitution,
    Strength,
    SocialStatus,
    MagicResistance,
    Initiative,
    CloseCombat,
    Parry,
    RangedCombat,
}

Base values of a Hero.

The type implements std::str::FromStr and individual items are annotated with the possible values they are parsed from. Parsing is case insensitive, that is the to-be-parsed string is downcased before matching.

Examples

let hero = Hero::default();
let int_fromstr = "KluGHeiT".parse().unwrap();
assert_eq!(Quality::Wisdom,int_fromstr);
let int = hero.qualities.get(&int_fromstr).unwrap_or(&0);
assert_eq!(0, *int);

Variants

Courage

MU, Mut, courage

Wisdom

KL, Klugheit, wisdom

Intuition

IN, Intuition

Charisma

CH, Charisma

Dexterity

FF, Fingerfertigkeit, dexterity

Agility

GE, Gewandtheit, agility

Constitution

KO, Konstitution, constitution

Strength

KK, Körperkraft, strength

SocialStatus

GS, Sozialstatus, socialstatus

MagicResistance

MR, Magieresistenz, magicrestistance

Initiative

INI, Initiative

CloseCombat

AT, Attacke, nahkampf, combat, closecombat

Parry

PA, Parrieren, parry

RangedCombat

FK, Fernkampf, ranged, rangedcombat

Trait Implementations

impl Clone for Quality[src]

impl Copy for Quality[src]

impl Debug for Quality[src]

impl Eq for Quality[src]

impl FromStr for Quality[src]

type Err = Error

The associated error which can be returned from parsing.

impl Hash for Quality[src]

impl Ord for Quality[src]

impl PartialEq<Quality> for Quality[src]

impl PartialOrd<Quality> for Quality[src]

impl StructuralEq for Quality[src]

impl StructuralPartialEq for Quality[src]

Auto Trait Implementations

impl RefUnwindSafe for Quality

impl Send for Quality

impl Sync for Quality

impl Unpin for Quality

impl UnwindSafe for Quality

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]