Struct tame_index::index::location::IndexLocation
source · 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