pub struct IndexLocation<'il> {
pub url: IndexUrl<'il>,
pub root: IndexPath,
}
Expand description
Helper for constructing an index location, consisting of the remote url for the index and the local location on disk
Fields§
§url: IndexUrl<'il>
The remote url of the registry index
root: IndexPath
The local disk path of the index
Implementations§
Source§impl<'il> IndexLocation<'il>
impl<'il> IndexLocation<'il>
Sourcepub fn new(url: IndexUrl<'il>) -> Self
pub fn new(url: IndexUrl<'il>) -> Self
Constructs an index with the specified url located in the default cargo home
Trait Implementations§
Source§impl<'il> Default for IndexLocation<'il>
impl<'il> Default for IndexLocation<'il>
Source§fn default() -> IndexLocation<'il>
fn default() -> IndexLocation<'il>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'il> Freeze for IndexLocation<'il>
impl<'il> RefUnwindSafe for IndexLocation<'il>
impl<'il> Send for IndexLocation<'il>
impl<'il> Sync for IndexLocation<'il>
impl<'il> Unpin for IndexLocation<'il>
impl<'il> UnwindSafe for IndexLocation<'il>
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