pub enum GitBranchNameError {
Empty,
InvalidName,
MissingRemoteOrBranch,
}Expand description
Error returned while parsing branch names.
Variants§
Empty
The supplied branch name was empty.
InvalidName
The supplied branch name used syntax this crate rejects.
MissingRemoteOrBranch
A remote-tracking name did not include both remote and branch parts.
Trait Implementations§
Source§impl Clone for GitBranchNameError
impl Clone for GitBranchNameError
Source§fn clone(&self) -> GitBranchNameError
fn clone(&self) -> GitBranchNameError
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 moreSource§impl Debug for GitBranchNameError
impl Debug for GitBranchNameError
Source§impl Display for GitBranchNameError
impl Display for GitBranchNameError
Source§impl Error for GitBranchNameError
impl Error for GitBranchNameError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for GitBranchNameError
impl PartialEq for GitBranchNameError
Source§fn eq(&self, other: &GitBranchNameError) -> bool
fn eq(&self, other: &GitBranchNameError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for GitBranchNameError
impl Eq for GitBranchNameError
impl StructuralPartialEq for GitBranchNameError
Auto Trait Implementations§
impl Freeze for GitBranchNameError
impl RefUnwindSafe for GitBranchNameError
impl Send for GitBranchNameError
impl Sync for GitBranchNameError
impl Unpin for GitBranchNameError
impl UnsafeUnpin for GitBranchNameError
impl UnwindSafe for GitBranchNameError
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