pub struct PatchStatus {
pub name: String,
pub dir: PathBuf,
pub base: Option<String>,
pub locked: Option<String>,
pub in_use: bool,
}Expand description
Where a patched dependency stands after an install: whether the copy is what the dependency resolves from, and the two revisions the answer rests on.
in_use is false when the directory is gone, when the lockfile records no base for it,
or when the pin has moved on from that base — the dependency then resolves to the
upstream revision, and the copy sits in the tree unused until it is refreshed or
removed. See Project::patch_status.
Fields§
§name: String§dir: PathBuf§base: Option<String>The revision the copy was taken from (patch_base), when the lockfile has one.
locked: Option<String>The revision the pin resolves to, as the last install recorded it.
in_use: boolTrait Implementations§
Source§impl Clone for PatchStatus
impl Clone for PatchStatus
Source§fn clone(&self) -> PatchStatus
fn clone(&self) -> PatchStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Freeze for PatchStatus
impl RefUnwindSafe for PatchStatus
impl Send for PatchStatus
impl Sync for PatchStatus
impl Unpin for PatchStatus
impl UnsafeUnpin for PatchStatus
impl UnwindSafe for PatchStatus
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,
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