[][src]Struct codegame::FullOptions

pub struct FullOptions<G: Game> {
    pub seed: Option<u64>,
    pub options_preset: G::OptionsPreset,
    pub players: Vec<G::PlayerOptions>,
}

Fields

seed: Option<u64>options_preset: G::OptionsPresetplayers: Vec<G::PlayerOptions>

Implementations

impl<G: Game> FullOptions<G>[src]

pub fn save(&self, writer: impl Write) -> Result<()>[src]

pub fn load(reader: impl Read) -> Result<Self>[src]

Trait Implementations

impl<G: Clone + Game> Clone for FullOptions<G> where
    G::OptionsPreset: Clone,
    G::PlayerOptions: Clone
[src]

impl<G: Debug + Game> Debug for FullOptions<G> where
    G::OptionsPreset: Debug,
    G::PlayerOptions: Debug
[src]

impl<'de, G: Game> Deserialize<'de> for FullOptions<G> where
    G::OptionsPreset: Deserialize<'de>, 
[src]

impl<G: Game> Serialize for FullOptions<G> where
    G::OptionsPreset: Serialize
[src]

Auto Trait Implementations

impl<G> RefUnwindSafe for FullOptions<G> where
    <G as Game>::OptionsPreset: RefUnwindSafe,
    <G as Game>::PlayerOptions: RefUnwindSafe

impl<G> Send for FullOptions<G> where
    <G as Game>::OptionsPreset: Send,
    <G as Game>::PlayerOptions: Send

impl<G> Sync for FullOptions<G> where
    <G as Game>::OptionsPreset: Sync,
    <G as Game>::PlayerOptions: Sync

impl<G> Unpin for FullOptions<G> where
    <G as Game>::OptionsPreset: Unpin,
    <G as Game>::PlayerOptions: Unpin

impl<G> UnwindSafe for FullOptions<G> where
    <G as Game>::OptionsPreset: UnwindSafe,
    <G as Game>::PlayerOptions: UnwindSafe

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

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

impl<T> Message for T where
    T: 'static + Send + Debug + for<'de> Deserialize<'de> + Serialize

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SetParameter for T

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