Enum cargo::ops::RegistryOrIndex
source · pub enum RegistryOrIndex {
Registry(String),
Index(Url),
}
Expand description
Represents either --registry
or --index
argument, which is mutually exclusive.
Variants§
Trait Implementations§
source§impl Clone for RegistryOrIndex
impl Clone for RegistryOrIndex
source§fn clone(&self) -> RegistryOrIndex
fn clone(&self) -> RegistryOrIndex
Returns a copy of the value. Read more
1.0.0 · 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 RefUnwindSafe for RegistryOrIndex
impl Send for RegistryOrIndex
impl Sync for RegistryOrIndex
impl Unpin for RegistryOrIndex
impl UnwindSafe for RegistryOrIndex
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