pub enum GameInitConfig<G: Game> {
LoadFrom(PathBuf),
Create(G::OptionsPreset),
}
Variants§
LoadFrom(PathBuf)
Create(G::OptionsPreset)
Trait Implementations§
Source§impl<G: Clone + Game> Clone for GameInitConfig<G>where
G::OptionsPreset: Clone,
impl<G: Clone + Game> Clone for GameInitConfig<G>where
G::OptionsPreset: Clone,
Source§fn clone(&self) -> GameInitConfig<G>
fn clone(&self) -> GameInitConfig<G>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<G: Debug + Game> Debug for GameInitConfig<G>where
G::OptionsPreset: Debug,
impl<G: Debug + Game> Debug for GameInitConfig<G>where
G::OptionsPreset: Debug,
Source§impl<'de, G: Game> Deserialize<'de> for GameInitConfig<G>where
G::OptionsPreset: Deserialize<'de>,
impl<'de, G: Game> Deserialize<'de> for GameInitConfig<G>where
G::OptionsPreset: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<G: Game> From<GameInitConfig<G>> for GameInitOptions<G>
impl<G: Game> From<GameInitConfig<G>> for GameInitOptions<G>
Source§fn from(config: GameInitConfig<G>) -> Self
fn from(config: GameInitConfig<G>) -> Self
Converts to this type from the input type.
Source§impl<G: Game> Serialize for GameInitConfig<G>where
G::OptionsPreset: Serialize,
impl<G: Game> Serialize for GameInitConfig<G>where
G::OptionsPreset: Serialize,
Auto Trait Implementations§
impl<G> Freeze for GameInitConfig<G>
impl<G> RefUnwindSafe for GameInitConfig<G>
impl<G> Send for GameInitConfig<G>
impl<G> Sync for GameInitConfig<G>
impl<G> Unpin for GameInitConfig<G>
impl<G> UnwindSafe for GameInitConfig<G>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more