pub struct SelfPin<'a> {
pub project: &'a ProjectName,
pub git_ref: &'a GitRef,
pub repo_dir_path: Option<&'a Path>,
}Expand description
The self-ref half of a PinSpec, handed to the one function that
resolves it so a caller cannot pass a literal or pattern spec by mistake.
Fields§
§project: &'a ProjectName§git_ref: &'a GitRef§repo_dir_path: Option<&'a Path>Some when the pin overrides the CLI --repo-dir-path fallback.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for SelfPin<'a>
impl<'a> Freeze for SelfPin<'a>
impl<'a> Move for SelfPin<'a>
impl<'a> RefUnwindSafe for SelfPin<'a>
impl<'a> Send for SelfPin<'a>
impl<'a> Sync for SelfPin<'a>
impl<'a> Unpin for SelfPin<'a>
impl<'a> UnsafeUnpin for SelfPin<'a>
impl<'a> UnwindSafe for SelfPin<'a>
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