[][src]Struct startrust::TheGameDefsBuilder

pub struct TheGameDefsBuilder { /* fields omitted */ }

Builder for TheGameDefs.

Implementations

impl TheGameDefsBuilder[src]

pub fn initial_energy(&mut self, value: f64) -> &mut Self[src]

Initial Energy

pub fn initial_photon_torpedoes(&mut self, value: i32) -> &mut Self[src]

Initial Photon Torpedoes

pub fn beginning_stardate(&mut self, value: StarDate) -> &mut Self[src]

Initial StarDate

pub fn ending_stardate(&mut self, value: StarDate) -> &mut Self[src]

Final StarDate

pub fn initial_total_klingons(&mut self, value: i32) -> &mut Self[src]

Initial total Klingons

pub fn starbase_frequency(&mut self, value: f64) -> &mut Self[src]

pub fn s9(&mut self, value: f64) -> &mut Self[src]

pub fn x(&mut self, value: i32) -> &mut Self[src]

pub fn y(&mut self, value: i32) -> &mut Self[src]

pub fn x1(&mut self, value: f64) -> &mut Self[src]

pub fn y1(&mut self, value: f64) -> &mut Self[src]

pub fn x2(&mut self, value: f64) -> &mut Self[src]

pub fn y2(&mut self, value: f64) -> &mut Self[src]

pub fn build(&self) -> Result<TheGameDefs, String>[src]

Builds a new TheGameDefs.

Errors

If a required field has not been initialized.

Trait Implementations

impl Clone for TheGameDefsBuilder[src]

impl Default for TheGameDefsBuilder[src]

Auto Trait Implementations

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> Same<T> for T

type Output = T

Should always be Self

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>,