pub enum GitOidParseError {
Empty,
InvalidLength(usize),
InvalidShortLength(usize),
NonHexCharacter {
index: usize,
character: char,
},
UnknownKind,
}Expand description
Error returned while parsing object identifier text.
Variants§
Empty
The supplied identifier text was empty.
InvalidLength(usize)
The full identifier length was not a supported shape.
InvalidShortLength(usize)
The short identifier length was outside the accepted range.
NonHexCharacter
The identifier contained a non-hexadecimal character.
UnknownKind
The object identifier kind label was not recognized.
Trait Implementations§
Source§impl Clone for GitOidParseError
impl Clone for GitOidParseError
Source§fn clone(&self) -> GitOidParseError
fn clone(&self) -> GitOidParseError
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 GitOidParseError
impl Debug for GitOidParseError
Source§impl Display for GitOidParseError
impl Display for GitOidParseError
Source§impl Error for GitOidParseError
impl Error for GitOidParseError
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 GitOidParseError
impl PartialEq for GitOidParseError
Source§fn eq(&self, other: &GitOidParseError) -> bool
fn eq(&self, other: &GitOidParseError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for GitOidParseError
impl Eq for GitOidParseError
impl StructuralPartialEq for GitOidParseError
Auto Trait Implementations§
impl Freeze for GitOidParseError
impl RefUnwindSafe for GitOidParseError
impl Send for GitOidParseError
impl Sync for GitOidParseError
impl Unpin for GitOidParseError
impl UnsafeUnpin for GitOidParseError
impl UnwindSafe for GitOidParseError
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