#[non_exhaustive]pub enum WorktreeBaseRef {
Fresh,
Head,
Other(String),
}Expand description
worktree.baseRef.
Docs: worktree.baseRef.
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.
Fresh
New worktrees branch from origin/<default-branch>.
Head
New worktrees branch from your current local HEAD, including unpushed commits.
Other(String)
A value this crate doesn’t know, as written.
Implementations§
Trait Implementations§
Source§impl AsRef<str> for WorktreeBaseRef
impl AsRef<str> for WorktreeBaseRef
Source§impl Clone for WorktreeBaseRef
impl Clone for WorktreeBaseRef
Source§impl Debug for WorktreeBaseRef
impl Debug for WorktreeBaseRef
Source§impl<'de> Deserialize<'de> for WorktreeBaseRef
impl<'de> Deserialize<'de> for WorktreeBaseRef
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for WorktreeBaseRef
impl Display for WorktreeBaseRef
impl Eq for WorktreeBaseRef
Source§impl From<&str> for WorktreeBaseRef
impl From<&str> for WorktreeBaseRef
Source§impl From<String> for WorktreeBaseRef
impl From<String> for WorktreeBaseRef
Source§impl Hash for WorktreeBaseRef
impl Hash for WorktreeBaseRef
Source§impl Ord for WorktreeBaseRef
impl Ord for WorktreeBaseRef
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for WorktreeBaseRef
impl PartialEq for WorktreeBaseRef
Source§impl PartialOrd for WorktreeBaseRef
impl PartialOrd for WorktreeBaseRef
Source§impl Serialize for WorktreeBaseRef
impl Serialize for WorktreeBaseRef
impl StructuralPartialEq for WorktreeBaseRef
Auto Trait Implementations§
impl Forget for WorktreeBaseRef
impl Freeze for WorktreeBaseRef
impl Move for WorktreeBaseRef
impl RefUnwindSafe for WorktreeBaseRef
impl Send for WorktreeBaseRef
impl Sync for WorktreeBaseRef
impl Unpin for WorktreeBaseRef
impl UnsafeUnpin for WorktreeBaseRef
impl UnwindSafe for WorktreeBaseRef
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