Enum hcklib::field_range::FieldError
source · pub enum FieldError {
HeaderNotFound(String),
InvalidField(usize),
InvalidOrder(usize, usize),
FailedParse(String),
NoHeadersMatched,
}Expand description
Errors for parsing / validating FieldRange strings.
Variants§
HeaderNotFound(String)
InvalidField(usize)
InvalidOrder(usize, usize)
FailedParse(String)
NoHeadersMatched
Trait Implementations§
source§impl Debug for FieldError
impl Debug for FieldError
source§impl Display for FieldError
impl Display for FieldError
source§impl Error for FieldError
impl Error for FieldError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl PartialEq<FieldError> for FieldError
impl PartialEq<FieldError> for FieldError
source§fn eq(&self, other: &FieldError) -> bool
fn eq(&self, other: &FieldError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.