#[non_exhaustive]pub enum MdErrorCode {
InvalidFrontmatter = 6_000,
FrontmatterUnclosed = 6_001,
TemplateResolution = 6_002,
UnsupportedStructure = 6_003,
LosslessParse = 6_008,
LosslessMissingAttribute = 6_009,
LosslessInvalidAttribute = 6_010,
FileTooLarge = 6_011,
Io = 6_004,
Core = 6_005,
Blueprint = 6_006,
Foundation = 6_007,
}Expand description
Error codes for smithy-md (6000-6999 range).
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.
InvalidFrontmatter = 6_000
Invalid YAML frontmatter.
FrontmatterUnclosed = 6_001
Frontmatter delimiter was not closed.
TemplateResolution = 6_002
Template inheritance resolution failed.
UnsupportedStructure = 6_003
Unsupported markdown structure.
LosslessParse = 6_008
Invalid lossless body.
LosslessMissingAttribute = 6_009
Missing lossless element attribute.
LosslessInvalidAttribute = 6_010
Invalid lossless element attribute value.
FileTooLarge = 6_011
File exceeds maximum allowed size.
Io = 6_004
I/O failure.
Core = 6_005
Propagated Core error.
Blueprint = 6_006
Propagated Blueprint error.
Foundation = 6_007
Propagated Foundation error.
Trait Implementations§
Source§impl Clone for MdErrorCode
impl Clone for MdErrorCode
Source§fn clone(&self) -> MdErrorCode
fn clone(&self) -> MdErrorCode
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 MdErrorCode
impl Debug for MdErrorCode
Source§impl Display for MdErrorCode
impl Display for MdErrorCode
Source§impl Hash for MdErrorCode
impl Hash for MdErrorCode
Source§impl PartialEq for MdErrorCode
impl PartialEq for MdErrorCode
impl Copy for MdErrorCode
impl Eq for MdErrorCode
impl StructuralPartialEq for MdErrorCode
Auto Trait Implementations§
impl Freeze for MdErrorCode
impl RefUnwindSafe for MdErrorCode
impl Send for MdErrorCode
impl Sync for MdErrorCode
impl Unpin for MdErrorCode
impl UnwindSafe for MdErrorCode
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.