pub enum ProtonVersion {
Proton37Beta,
Proton37,
Proton316Beta,
Proton316,
Proton42,
Proton411,
Proton50,
Proton513,
Proton63,
Proton70,
ProtonNext,
ProtonExperimental,
}
Variants§
Proton37Beta
Proton37
Proton316Beta
Proton316
Proton42
Proton411
Proton50
Proton513
Proton63
Proton70
ProtonNext
ProtonExperimental
Implementations§
Source§impl ProtonVersion
impl ProtonVersion
pub fn get_appid(&self) -> u64
pub fn all() -> Vec<Self>
pub fn install_url(&self) -> String
pub fn uninstall_url(&self) -> String
pub fn best_installed(steam: &SteamData) -> Option<Self>
pub fn is_installed(&self, steam: &SteamData) -> bool
pub fn arg_name(&self) -> String
pub fn get_path(&self, steam_data: &SteamData) -> Option<PathBuf>
Trait Implementations§
Source§impl Clone for ProtonVersion
impl Clone for ProtonVersion
Source§fn clone(&self) -> ProtonVersion
fn clone(&self) -> ProtonVersion
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ProtonVersion
impl Debug for ProtonVersion
Source§impl Display for ProtonVersion
impl Display for ProtonVersion
Source§impl Ord for ProtonVersion
impl Ord for ProtonVersion
Source§fn cmp(&self, other: &ProtonVersion) -> Ordering
fn cmp(&self, other: &ProtonVersion) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ProtonVersion
impl PartialEq for ProtonVersion
Source§impl PartialOrd for ProtonVersion
impl PartialOrd for ProtonVersion
Source§impl ValueEnum for ProtonVersion
impl ValueEnum for ProtonVersion
impl Copy for ProtonVersion
impl Eq for ProtonVersion
impl StructuralPartialEq for ProtonVersion
Auto Trait Implementations§
impl Freeze for ProtonVersion
impl RefUnwindSafe for ProtonVersion
impl Send for ProtonVersion
impl Sync for ProtonVersion
impl Unpin for ProtonVersion
impl UnwindSafe for ProtonVersion
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