pub enum MarkdownFileError {
NotAnHTML5TagName {
name: KString,
is_opening: bool,
},
UnbalancedTags {
opening: String,
closing: String,
},
MultipleFootnoteWithLabel {
label: KString,
},
UnusedFootnote {
label: KString,
},
MissingFootnoteDefinition {
label: KString,
},
MultipleTitleElements,
HTML5ParsingError {
error: Error,
input: Box<str>,
},
NonClosedContexts {
n: usize,
msg: String,
},
HeaderLevelShiftOutOfRange {
diff: i32,
},
Anyhow(Error),
Utf8Error(Utf8Error),
FromUtf8Error(FromUtf8Error),
}Variants§
NotAnHTML5TagName
UnbalancedTags
MultipleFootnoteWithLabel
UnusedFootnote
MissingFootnoteDefinition
MultipleTitleElements
HTML5ParsingError
NonClosedContexts
HeaderLevelShiftOutOfRange
Anyhow(Error)
Utf8Error(Utf8Error)
FromUtf8Error(FromUtf8Error)
Trait Implementations§
Source§impl Debug for MarkdownFileError
impl Debug for MarkdownFileError
Source§impl Display for MarkdownFileError
impl Display for MarkdownFileError
Source§impl Error for MarkdownFileError
impl Error for MarkdownFileError
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 From<Error> for MarkdownFileError
impl From<Error> for MarkdownFileError
Source§impl From<FromUtf8Error> for MarkdownFileError
impl From<FromUtf8Error> for MarkdownFileError
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MarkdownFileError
impl RefUnwindSafe for MarkdownFileError
impl Send for MarkdownFileError
impl Sync for MarkdownFileError
impl Unpin for MarkdownFileError
impl UnwindSafe for MarkdownFileError
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