Enum nzsc_core::characters::Character [−][src]
pub enum Character { Ninja, Zombie, Samurai, Clown, }
Variants
Ninja
Zombie
Samurai
Clown
Methods
impl Character
[src]
impl Character
pub fn to_u8(self) -> u8
[src]
pub fn to_u8(self) -> u8
pub fn get_moves(self) -> Vec<Move>
[src]
pub fn get_moves(self) -> Vec<Move>
pub fn get_boosters(self) -> Vec<Booster>
[src]
pub fn get_boosters(self) -> Vec<Booster>
Trait Implementations
impl Clone for Character
[src]
impl Clone for Character
fn clone(&self) -> Character
[src]
fn clone(&self) -> Character
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 Copy for Character
[src]
impl Copy for Character
impl PartialEq for Character
[src]
impl PartialEq for Character
fn eq(&self, other: &Character) -> bool
[src]
fn eq(&self, other: &Character) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl FromStr for Character
[src]
impl FromStr for Character
type Err = ()
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. Read more
impl Display for Character
[src]
impl Display for Character