pub enum GitParseError {
Malformed(&'static str),
Header(&'static str),
BadId(&'static str),
PersonTimestamp,
}Expand description
Structural parse failure (not policy — see module docs).
Variants§
Malformed(&'static str)
No \n\n header/message separator, or header block over the cap.
Header(&'static str)
A required header (tree, object, type, tag) is missing
or duplicated.
BadId(&'static str)
A hash-valued header is not 40 lowercase/uppercase hex chars.
PersonTimestamp
A person line has no parseable timestamp where one is required.
Trait Implementations§
Source§impl Clone for GitParseError
impl Clone for GitParseError
Source§fn clone(&self) -> GitParseError
fn clone(&self) -> GitParseError
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 GitParseError
impl Debug for GitParseError
Source§impl Display for GitParseError
impl Display for GitParseError
impl Eq for GitParseError
Source§impl Error for GitParseError
impl Error for GitParseError
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 GitParseError
impl PartialEq for GitParseError
Source§fn eq(&self, other: &GitParseError) -> bool
fn eq(&self, other: &GitParseError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GitParseError
Auto Trait Implementations§
impl Freeze for GitParseError
impl RefUnwindSafe for GitParseError
impl Send for GitParseError
impl Sync for GitParseError
impl Unpin for GitParseError
impl UnsafeUnpin for GitParseError
impl UnwindSafe for GitParseError
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