pub enum OutputStyleError {
Io(Error),
Frontmatter(String),
Yaml(Error),
NameStemMismatch {
name: String,
stem: String,
},
EmptyDescription,
InvalidName(String),
}Expand description
Errors surfaced by load_one.
Variants§
Io(Error)
The file could not be read from disk.
Frontmatter(String)
The frontmatter delimiters were missing or malformed.
Yaml(Error)
The YAML inside the frontmatter could not be parsed.
NameStemMismatch
The name: field does not match the file stem.
EmptyDescription
The description: field was empty after trimming.
InvalidName(String)
The name contains characters outside [a-z0-9_-]+.
Trait Implementations§
Source§impl Debug for OutputStyleError
impl Debug for OutputStyleError
Source§impl Display for OutputStyleError
impl Display for OutputStyleError
Source§impl Error for OutputStyleError
impl Error for OutputStyleError
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 OutputStyleError
impl From<Error> for OutputStyleError
Auto Trait Implementations§
impl !RefUnwindSafe for OutputStyleError
impl !UnwindSafe for OutputStyleError
impl Freeze for OutputStyleError
impl Send for OutputStyleError
impl Sync for OutputStyleError
impl Unpin for OutputStyleError
impl UnsafeUnpin for OutputStyleError
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