pub struct ClonerSource { /* private fields */ }Expand description
Where to clone the crate from.
Implementations§
Source§impl ClonerSource
impl ClonerSource
Sourcepub fn registry(key: impl Into<String>) -> Self
pub fn registry(key: impl Into<String>) -> Self
Creates a ClonerSource from the name of the remote registry.
Sourcepub fn local_registry(path: impl Into<String>) -> Self
pub fn local_registry(path: impl Into<String>) -> Self
Creates a ClonerSource from a local registry path.
Sourcepub fn index(index: impl AsRef<str>) -> CargoResult<Self>
pub fn index(index: impl AsRef<str>) -> CargoResult<Self>
Creates a ClonerSource from a remote registry URL.
Sourcepub fn index_from_url(url: Url) -> Self
pub fn index_from_url(url: Url) -> Self
Creates a ClonerSource from a remote registry URL.
Sourcepub fn crates_io() -> Self
pub fn crates_io() -> Self
Creates a ClonerSource from crates.io.
Trait Implementations§
Source§impl Debug for ClonerSource
impl Debug for ClonerSource
Source§impl Default for ClonerSource
impl Default for ClonerSource
Source§fn default() -> ClonerSource
fn default() -> ClonerSource
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ClonerSource
impl RefUnwindSafe for ClonerSource
impl Send for ClonerSource
impl Sync for ClonerSource
impl Unpin for ClonerSource
impl UnwindSafe for ClonerSource
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