Enum system_env::VersionArgument
source · pub enum VersionArgument {
None,
Inline(String),
Separate(String),
}
Expand description
The CLI argument format for including the package version to install.
Variants§
None
Does not support versions.
Inline(String)
In the same argument with the package name: pkg=1.2.3
Separate(String)
As a separate argument: pkg --version 1.2.3
Trait Implementations§
source§impl Clone for VersionArgument
impl Clone for VersionArgument
source§fn clone(&self) -> VersionArgument
fn clone(&self) -> VersionArgument
Returns a copy 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 moreAuto Trait Implementations§
impl RefUnwindSafe for VersionArgument
impl Send for VersionArgument
impl Sync for VersionArgument
impl Unpin for VersionArgument
impl UnwindSafe for VersionArgument
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