pub struct Cloner { /* private fields */ }Expand description
Clones a crate.
Implementations§
Source§impl Cloner
impl Cloner
Sourcepub fn builder() -> ClonerBuilder
pub fn builder() -> ClonerBuilder
Creates a new ClonerBuilder that:
- Uses crates.io as source.
- Clones the crates into the current directory.
Sourcepub fn clone_in_dir(&self, crate_: &Crate) -> CargoResult<()>
pub fn clone_in_dir(&self, crate_: &Crate) -> CargoResult<()>
Clone the specified crate from registry or git repository.
The crate is cloned in the directory specified by the ClonerBuilder.
Sourcepub fn clone(&self, crates: &[Crate]) -> CargoResult<()>
pub fn clone(&self, crates: &[Crate]) -> CargoResult<()>
Clone the specified crates from registry or git repository. Each crate is cloned in a subdirectory named as the crate name.
Auto Trait Implementations§
impl !Freeze for Cloner
impl !RefUnwindSafe for Cloner
impl !Send for Cloner
impl !Sync for Cloner
impl Unpin for Cloner
impl !UnwindSafe for Cloner
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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