#[non_exhaustive]pub enum WorktreeLinkStyle {
Configured,
Relative,
Absolute,
}Expand description
Link spelling for one worktree creation or repair operation.
An explicit choice affects only the links written by that operation. It does not edit
extensions.relativeWorktrees or change the default of later operations.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Configured
Follow the repository’s direct extensions.relativeWorktrees setting.
Relative
Write relative forward and back links when both paths share a filesystem root.
Absolute
Write absolute forward and back links.
Trait Implementations§
Source§impl Clone for WorktreeLinkStyle
impl Clone for WorktreeLinkStyle
impl Copy for WorktreeLinkStyle
Source§impl Debug for WorktreeLinkStyle
impl Debug for WorktreeLinkStyle
Source§impl Default for WorktreeLinkStyle
impl Default for WorktreeLinkStyle
impl Eq for WorktreeLinkStyle
Source§impl PartialEq for WorktreeLinkStyle
impl PartialEq for WorktreeLinkStyle
impl StructuralPartialEq for WorktreeLinkStyle
Auto Trait Implementations§
impl Freeze for WorktreeLinkStyle
impl RefUnwindSafe for WorktreeLinkStyle
impl Send for WorktreeLinkStyle
impl Sync for WorktreeLinkStyle
impl Unpin for WorktreeLinkStyle
impl UnsafeUnpin for WorktreeLinkStyle
impl UnwindSafe for WorktreeLinkStyle
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