pub enum CloneMethodKind {
Crate,
Git,
Mercurial,
Pijul,
Fossil,
Auto,
}Expand description
An enum representation of supported cloning methods.
Variants§
Crate
Downloads the .crate file from the registry and extracts it.
Git
Clones using git.
Mercurial
Clones using hg.
Pijul
Clones using pijul.
Fossil
Clones using fossil.
Auto
Attempts to automatically detect which method to use using heuristics.
Implementations§
Source§impl CloneMethodKind
impl CloneMethodKind
Sourcepub fn from(method_name: &str) -> Option<CloneMethodKind>
pub fn from(method_name: &str) -> Option<CloneMethodKind>
Creates a CloneMethodKind from a method name. If no name matches then None is returned.
Current options are crate, git, hg, mercurial, pijul, fossil, and auto
Trait Implementations§
Source§impl Clone for CloneMethodKind
impl Clone for CloneMethodKind
Source§fn clone(&self) -> CloneMethodKind
fn clone(&self) -> CloneMethodKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Freeze for CloneMethodKind
impl RefUnwindSafe for CloneMethodKind
impl Send for CloneMethodKind
impl Sync for CloneMethodKind
impl Unpin for CloneMethodKind
impl UnsafeUnpin for CloneMethodKind
impl UnwindSafe for CloneMethodKind
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