#[non_exhaustive]pub enum DistillError {
Model(String),
BadDraft(String),
Invalid(Vec<String>),
Write(SkillError),
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Model(String)
BadDraft(String)
Invalid(Vec<String>)
The assembled draft failed this workspace’s own skill rules. Reaching this is a bug in the assembler, not a warning about the model — the point of building the frontmatter in Rust is that it cannot happen.
Write(SkillError)
Trait Implementations§
Source§impl Debug for DistillError
impl Debug for DistillError
Source§impl Display for DistillError
impl Display for DistillError
Source§impl Error for DistillError
impl Error for DistillError
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<SkillError> for DistillError
impl From<SkillError> for DistillError
Source§fn from(source: SkillError) -> Self
fn from(source: SkillError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Forget for DistillError
impl Freeze for DistillError
impl RefUnwindSafe for DistillError
impl Send for DistillError
impl Sync for DistillError
impl Unpin for DistillError
impl UnsafeUnpin for DistillError
impl UnwindSafe for DistillError
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