[][src]Enum cargo_clone::CloneMethodKind

pub enum CloneMethodKind {
    Crate,
    Git,
    Mercurial,
    Pijul,
    Fossil,
    Auto,
}

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

impl CloneMethodKind[src]

pub fn command(&self) -> &str[src]

Returns the underlying command line command for the method.

pub fn from(method_name: &str) -> Option<CloneMethodKind>[src]

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

impl Clone for CloneMethodKind[src]

impl Debug for CloneMethodKind[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.