Enum ffxiv_types::jobs::combat::Job [−][src]
pub enum Job { Bard, BlackMage, Dragoon, Machinist, Monk, Ninja, RedMage, Samurai, Summoner, Astrologian, Scholar, WhiteMage, DarkKnight, Paladin, Warrior, }
The Disciple of War and Disciple of Magic jobs available in the game.
Variants
Bard
BlackMage
Dragoon
Machinist
Monk
Ninja
RedMage
Samurai
Summoner
Astrologian
Scholar
WhiteMage
DarkKnight
Paladin
Warrior
Methods
impl Job
[src]
impl Job
pub const ALL: [Job; 15]
ALL: [Job; 15] = [Job::Bard, Job::BlackMage, Job::Dragoon, Job::Machinist, Job::Monk, Job::Ninja, Job::RedMage, Job::Samurai, Job::Summoner, Job::Astrologian, Job::Scholar, Job::WhiteMage, Job::DarkKnight, Job::Paladin, Job::Warrior]
pub fn as_str(&self) -> &'static str
[src]
pub fn as_str(&self) -> &'static str
Returns the string representation of this variant.
pub fn name(&self) -> &'static str
[src]
pub fn name(&self) -> &'static str
Returns the name of this job.
Names are title-cased and have spaces between words (e.g. "Bard" and "Black Mage").
pub fn code(&self) -> &'static str
[src]
pub fn code(&self) -> &'static str
Returns the short code of this job.
Short codes are fully capitalized (e.g. "BRD", "BLM").
pub fn role(&self) -> Role
[src]
pub fn role(&self) -> Role
Returns the Role
for this job.
pub fn classification(&self) -> Classification
[src]
pub fn classification(&self) -> Classification
Returns the Classification
for this job.
Trait Implementations
impl Debug for Job
[src]
impl Debug for Job
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Job
[src]
impl Clone for Job
fn clone(&self) -> Job
[src]
fn clone(&self) -> Job
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)
Performs copy-assignment from source
. Read more
impl Copy for Job
[src]
impl Copy for Job
impl FromStr for Job
[src]
impl FromStr for Job
type Err = UnknownVariant
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
fn from_str(s: &str) -> Result<Self, Self::Err>
Parses a string s
to return a value of this type.
This accepts the name of the variant as a string, the name of the variant as a string with spaces between words, and the shortened job code for each variant (e.g. "BLM" for Black Mage).
This is case-insensitive.
impl Display for Job
[src]
impl Display for Job