Enum rust_fixed_width::record::Error
[−]
[src]
pub enum Error { RecordSpecNameRequired, RecordSpecRecognizerError(RecognizerError), RecordSpecNotFound(String), FieldSpecNotFound(String, String), PadderFailure(PadderError), IoError(IoError), StringDoesNotMatchLineEnding(String, String), PaddedValueWrongLength(usize, usize), FieldValueRequired(String, String), }
Variants
RecordSpecNameRequired
RecordSpecRecognizerError(RecognizerError)
RecordSpecNotFound(String)
FieldSpecNotFound(String, String)
PadderFailure(PadderError)
IoError(IoError)
StringDoesNotMatchLineEnding(String, String)
PaddedValueWrongLength(usize, usize)
FieldValueRequired(String, String)
Trait Implementations
impl Debug for Error
[src]
impl ErrorTrait for Error
[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&ErrorTrait>
The lower-level cause of this error, if any. Read more
impl Display for Error
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), FmtError>
Formats the value using the given formatter.
impl From<IoError> for Error
[src]
impl From<RecognizerError> for Error
[src]
fn from(e: RecognizerError) -> Self
Performs the conversion.
impl From<PadderError> for Error
[src]
fn from(e: PadderError) -> Self
Performs the conversion.