Enum GitRefParseError
pub enum GitRefParseError {
Empty,
InvalidName,
EmptyDetachedTarget,
}Expand description
Error returned while parsing ref vocabulary.
Variants§
Empty
The supplied ref text was empty.
InvalidName
The supplied ref name used syntax this crate rejects.
EmptyDetachedTarget
The supplied detached HEAD target was empty.
Trait Implementations§
§impl Clone for GitRefParseError
impl Clone for GitRefParseError
§fn clone(&self) -> GitRefParseError
fn clone(&self) -> GitRefParseError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for GitRefParseError
impl Debug for GitRefParseError
§impl Display for GitRefParseError
impl Display for GitRefParseError
§impl Error for GitRefParseError
impl Error for GitRefParseError
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()
§impl PartialEq for GitRefParseError
impl PartialEq for GitRefParseError
impl Copy for GitRefParseError
impl Eq for GitRefParseError
impl StructuralPartialEq for GitRefParseError
Auto Trait Implementations§
impl Freeze for GitRefParseError
impl RefUnwindSafe for GitRefParseError
impl Send for GitRefParseError
impl Sync for GitRefParseError
impl Unpin for GitRefParseError
impl UnsafeUnpin for GitRefParseError
impl UnwindSafe for GitRefParseError
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