pub enum ReadmeVersionError {
NoMarker,
InvalidFormat,
ParseError {
value: String,
},
}Expand description
Errors that can occur when extracting README version.
Variants§
NoMarker
No version marker found in the file (legacy file).
InvalidFormat
Version marker is malformed (e.g., missing closing -->).
ParseError
Version value could not be parsed as a non-negative integer.
Trait Implementations§
Source§impl Clone for ReadmeVersionError
impl Clone for ReadmeVersionError
Source§fn clone(&self) -> ReadmeVersionError
fn clone(&self) -> ReadmeVersionError
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 moreSource§impl Debug for ReadmeVersionError
impl Debug for ReadmeVersionError
Source§impl Display for ReadmeVersionError
impl Display for ReadmeVersionError
Source§impl Error for ReadmeVersionError
impl Error for ReadmeVersionError
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 ReadmeVersionError
impl PartialEq for ReadmeVersionError
impl Eq for ReadmeVersionError
impl StructuralPartialEq for ReadmeVersionError
Auto Trait Implementations§
impl Freeze for ReadmeVersionError
impl RefUnwindSafe for ReadmeVersionError
impl Send for ReadmeVersionError
impl Sync for ReadmeVersionError
impl Unpin for ReadmeVersionError
impl UnsafeUnpin for ReadmeVersionError
impl UnwindSafe for ReadmeVersionError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.