pub enum InstallationResultRecord {
Max(PrefixRecord),
Min(MinimalPrefixRecord),
}Expand description
Special kind of record that either can be either minimal or full.
In case where nothing changed transaction will be noop and to
check this we have to read only few fields of PrefixRecord which
are entailed in MinimalPrefixRecord.
Without this structure we would have to inject
MinimalPrefixRecord to PrefixRecord which could lead to
unexpected results.
Variants§
Implementations§
Source§impl InstallationResultRecord
impl InstallationResultRecord
Sourcepub fn into_prefix_record(
self,
prefix: impl AsRef<Path>,
) -> Result<PrefixRecord, Error>
pub fn into_prefix_record( self, prefix: impl AsRef<Path>, ) -> Result<PrefixRecord, Error>
Either just returns stored PrefixRecord or parses PrefixRecord from the given prefix.
Sourcepub fn version(&self) -> &VersionWithSource
pub fn version(&self) -> &VersionWithSource
Return reference to the underlying VersionWithSource.
Sourcepub fn python_site_packages_path(&self) -> Option<&str>
pub fn python_site_packages_path(&self) -> Option<&str>
Return reference to the underlying python_site_packages_path.
Sourcepub fn requested_spec(&self) -> Option<&String>
pub fn requested_spec(&self) -> Option<&String>
Return reference to the underlying requested_spec.
Sourcepub fn requested_specs(&self) -> &Vec<String>
pub fn requested_specs(&self) -> &Vec<String>
Return reference to the underlying requested_specs.
Trait Implementations§
Source§impl Clone for InstallationResultRecord
impl Clone for InstallationResultRecord
Source§fn clone(&self) -> InstallationResultRecord
fn clone(&self) -> InstallationResultRecord
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 moreSource§impl Debug for InstallationResultRecord
impl Debug for InstallationResultRecord
Auto Trait Implementations§
impl Freeze for InstallationResultRecord
impl RefUnwindSafe for InstallationResultRecord
impl Send for InstallationResultRecord
impl Sync for InstallationResultRecord
impl Unpin for InstallationResultRecord
impl UnwindSafe for InstallationResultRecord
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 moreCreates a shared type from an unshared type.