pub enum InstallMode {
Normal,
Noinstall,
Force,
}Expand description
The InstallMode determines which mode of initialization we are running, and
what install steps we perform.
Variants§
Normal
Perform all the install steps.
Noinstall
Don’t install tools like wasm-bindgen, just use the global
environment’s existing versions to do builds.
Force
Skip the rustc version check
Implementations§
Source§impl InstallMode
impl InstallMode
Sourcepub fn install_permitted(self) -> bool
pub fn install_permitted(self) -> bool
Determines if installation is permitted during a function call based on –mode flag
Trait Implementations§
Source§impl Clone for InstallMode
impl Clone for InstallMode
Source§fn clone(&self) -> InstallMode
fn clone(&self) -> InstallMode
Returns a duplicate 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 Debug for InstallMode
impl Debug for InstallMode
Source§impl Default for InstallMode
impl Default for InstallMode
Source§fn default() -> InstallMode
fn default() -> InstallMode
Returns the “default value” for a type. Read more
Source§impl FromStr for InstallMode
impl FromStr for InstallMode
impl Copy for InstallMode
Auto Trait Implementations§
impl Freeze for InstallMode
impl RefUnwindSafe for InstallMode
impl Send for InstallMode
impl Sync for InstallMode
impl Unpin for InstallMode
impl UnwindSafe for InstallMode
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