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 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 moreAuto Trait Implementations§
impl Freeze for VersionArgument
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