[−][src]Enum gpp::Error
Error enum for parsing errors.
This type implements std::fmt::Display, and so can easily be printed with println!.
Examples
let error = gpp::Error::TooManyParameters { command: "my_command" }; assert_eq!(format!("{}", error), "Too many parameters for #my_command");
Variants
An unknown command was encountered.
Fields of InvalidCommand
command_name: String
Too many parameters were given for a command (for example using #endif with parameters).
Fields of TooManyParameters
command: &'static str
There was an unexpected command; currently only generated for unexpected #endins.
Fields of UnexpectedCommand
command: &'static str
The child process for an #exec exited with a nonzero status.
Fields of ChildFailed
status: ExitStatus
A pipe was unable to be set up to the child.
IoError(Error)
An error with I/O occurred.
FromUtf8Error(FromUtf8Error)
An error occurred parsing a child's standard output as UTF-8.
Trait Implementations
Auto Trait Implementations
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
impl !RefUnwindSafe for Error
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,