pub enum Game {
Rbr,
DirtRally2,
AssettoCorsa,
BeamNg,
}Expand description
A game the installer can target, as listed in installer/DESIGN.md rev. 2.
Variants§
Implementations§
Source§impl Game
impl Game
Sourcepub fn marker(self) -> &'static str
pub fn marker(self) -> &'static str
The executable identifying this game’s folder; RBR and Dirt Rally keep the legacy names so every folder that worked there still works.
Sourcepub fn from_id(id: &str) -> Option<Game>
pub fn from_id(id: &str) -> Option<Game>
None for an id this build does not know, whose packages are then ignored.
pub fn index(self) -> usize
Sourcepub fn from_index(index: usize) -> Game
pub fn from_index(index: usize) -> Game
Out of range falls back to the first game.
Trait Implementations§
impl Copy for Game
impl Eq for Game
impl StructuralPartialEq for Game
Auto Trait Implementations§
impl Freeze for Game
impl RefUnwindSafe for Game
impl Send for Game
impl Sync for Game
impl Unpin for Game
impl UnsafeUnpin for Game
impl UnwindSafe for Game
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