pub struct SmartInstallOptions {
pub version: String,
pub strategy: InstallStrategy,
pub set_active: bool,
pub force: bool,
}Expand description
Options for smart GHC installation.
Fields§
§version: StringGHC version to install.
strategy: InstallStrategyInstallation strategy.
set_active: boolWhether to set as active after installation.
force: boolForce reinstall even if already installed.
Implementations§
Source§impl SmartInstallOptions
impl SmartInstallOptions
Sourcepub fn with_strategy(self, strategy: InstallStrategy) -> Self
pub fn with_strategy(self, strategy: InstallStrategy) -> Self
Set the installation strategy.
Sourcepub fn with_set_active(self, set_active: bool) -> Self
pub fn with_set_active(self, set_active: bool) -> Self
Set as active after installation.
Sourcepub fn with_force(self, force: bool) -> Self
pub fn with_force(self, force: bool) -> Self
Force reinstall.
Trait Implementations§
Source§impl Clone for SmartInstallOptions
impl Clone for SmartInstallOptions
Auto Trait Implementations§
impl Freeze for SmartInstallOptions
impl RefUnwindSafe for SmartInstallOptions
impl Send for SmartInstallOptions
impl Sync for SmartInstallOptions
impl Unpin for SmartInstallOptions
impl UnsafeUnpin for SmartInstallOptions
impl UnwindSafe for SmartInstallOptions
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