Enum assembly_pack::txt::Error [−][src]
pub enum Error {
MissingHeader(&'static str),
MissingVersionLine,
ExpectedHeader(&'static str, String),
IO(Error),
Nom(Error<Location>),
}
Expand description
An error from parsing a manifest
Variants
MissingHeader(&'static str)
Tuple Fields
0: &'static str
Unexpected EOF, expected a header
MissingVersionLine
Unexpected EOF, expected version line
ExpectedHeader(&'static str, String)
Expected a header but found something else
IO(Error)
Tuple Fields
0: Error
An IO error
Nom(Error<Location>)
Failed to parse a line
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more
Given the context attached to a nom error, and given the original input to the nom parser, extract more the useful context information. Read more
impl<T> Indentable for T where
T: Display,
impl<T> Indentable for T where
T: Display,
fn indented_skip_initial(self, indent: &str) -> IndentedSkipIntial<'_, Self>
fn indented_skip_initial(self, indent: &str) -> IndentedSkipIntial<'_, Self>
Given the original input, as well as the context reported by nom, recreate a context in the original string where the error occurred. Read more