Enum arpabet::ArpabetError [−][src]
pub enum ArpabetError { EmptyFile, InvalidFormat { line_number: usize, text: String, }, Io(Error), }
Errors for the Arpabet crate.
Variants
EmptyFile
The file or stream being read from was empty.
InvalidFormat
The file or stream contained invalid syntax.
Fields of InvalidFormat
line_number: usize | Line where the error occurred. |
text: String | Text of the offending line. |
Io(Error)
An error during file IO.
Trait Implementations
impl Debug for ArpabetError
[src]
impl Debug for ArpabetError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for ArpabetError
[src]
impl Display for ArpabetError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Error for ArpabetError
[src]
impl Error for ArpabetError
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>
[src]
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl From<Error> for ArpabetError
[src]
impl From<Error> for ArpabetError
fn from(err: Error) -> ArpabetError
[src]
fn from(err: Error) -> ArpabetError
Performs the conversion.
Auto Trait Implementations
impl Send for ArpabetError
impl Send for ArpabetError
impl Sync for ArpabetError
impl Sync for ArpabetError