pub enum MdError {
NotCodeBlockElement(String, Location),
NotFile(Location),
NoId(Location),
NoIdValue(Location),
BadAddNewline(String, Location),
}
Expand description
Errors returned from the module.
Variants§
NotCodeBlockElement(String, Location)
Tried to treat a non-PRE element as an embedded file.
NotFile(Location)
Code block lacks the “file” attribute.
NoId(Location)
Code block lacks an identifier to use as the filename.
NoIdValue(Location)
Identifier is empty.
BadAddNewline(String, Location)
Value of add-newline attribute is not understood.
Trait Implementations§
source§impl Error for MdError
impl Error for MdError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<MdError> for SubplotError
impl From<MdError> for SubplotError
source§impl PartialEq<MdError> for MdError
impl PartialEq<MdError> for MdError
impl Eq for MdError
impl StructuralEq for MdError
impl StructuralPartialEq for MdError
Auto Trait Implementations§
impl RefUnwindSafe for MdError
impl Send for MdError
impl Sync for MdError
impl Unpin for MdError
impl UnwindSafe for MdError
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.