Struct ggp_rs::Role [−] [src]

pub struct Role {
    // some fields omitted
}

A role in a game

Methods

impl Role

fn new<T: Into<String>>(name: T) -> Role

Constructs a new Role with the name name

fn name(&self) -> &str

Returns the name of the role

Trait Implementations

Derived Implementations

impl Hash for Role

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl PartialEq for Role

fn eq(&self, __arg_0: &Role) -> bool

fn ne(&self, __arg_0: &Role) -> bool

impl Eq for Role

impl Clone for Role

fn clone(&self) -> Role

fn clone_from(&mut self, source: &Self)

impl Debug for Role

fn fmt(&self, __arg_0: &mut Formatter) -> Result