[][src]Struct rlbot::PlayerConfiguration

pub struct PlayerConfiguration<'a> {
    pub variety: PlayerClass,
    pub name: &'a str,
    pub team: i32,
    pub loadout: PlayerLoadout,
    // some fields omitted
}

Describes one of the players in a match.

Fields

variety: PlayerClassname: &'a strteam: i32loadout: PlayerLoadout

Methods

impl<'a> PlayerConfiguration<'a>[src]

pub fn new(variety: PlayerClass, name: &'a str, team: i32) -> Self[src]

pub fn variety(self, variety: PlayerClass) -> Self[src]

pub fn name(self, name: &'a str) -> Self[src]

pub fn team(self, team: i32) -> Self[src]

pub fn loadout(self, loadout: PlayerLoadout) -> Self[src]

Trait Implementations

impl<'a> Clone for PlayerConfiguration<'a>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<'a> Send for PlayerConfiguration<'a>

impl<'a> Sync for PlayerConfiguration<'a>

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>,