pub enum CargoScriptInvocation {
Stable,
Nightly,
}Expand description
Which cargo invocation strategy to use for an .rs script file.
Variants§
Stable
Stable cargo with RFC 3502: cargo script <path> [-- <args>]
Nightly
Nightly fallback: cargo +nightly -Zscript <path> [-- <args>]
Trait Implementations§
Source§impl Clone for CargoScriptInvocation
impl Clone for CargoScriptInvocation
impl Copy for CargoScriptInvocation
Source§impl Debug for CargoScriptInvocation
impl Debug for CargoScriptInvocation
impl Eq for CargoScriptInvocation
Source§impl PartialEq for CargoScriptInvocation
impl PartialEq for CargoScriptInvocation
impl StructuralPartialEq for CargoScriptInvocation
Auto Trait Implementations§
impl Forget for CargoScriptInvocation
impl Freeze for CargoScriptInvocation
impl Move for CargoScriptInvocation
impl RefUnwindSafe for CargoScriptInvocation
impl Send for CargoScriptInvocation
impl Sync for CargoScriptInvocation
impl Unpin for CargoScriptInvocation
impl UnsafeUnpin for CargoScriptInvocation
impl UnwindSafe for CargoScriptInvocation
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