Enum rustme::Error [−][src]
#[non_exhaustive]
pub enum Error {
NoConfiguration,
MalformedSnippetReference,
MalformedSnippet,
MalformedCodeBlock,
SnippetAlreadyDefined(String),
SnippetNotFound(String),
SnippetEndNotFound,
Io(Error),
Ron(Error),
Http(Error),
Unicode(String),
Glossary {
location: String,
error: String,
},
}
Expand description
All errors that rustme
can return.
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.
No configuration was found.
A snippet reference is missing its closing $
.
A mismatch of snippet begins and ends.
A rust code block was not able to be parsed.
SnippetAlreadyDefined(String)
A snippet was already defined.
Tuple Fields of SnippetAlreadyDefined
0: String
SnippetNotFound(String)
A snippet was not found.
Tuple Fields of SnippetNotFound
0: String
A snippet was begun but not ended.
Io(Error)
An I/O error occurred.
Tuple Fields of Io
0: Error
Ron(Error)
A Ron error.
Tuple Fields of Ron
0: Error
An error requesting an Http resource.
Unicode(String)
An invalid Unicode byte sequence was encountered.
Tuple Fields of Unicode
0: String
An error loading a glossary.
Trait Implementations
Performs the conversion.