pub enum PositionError {
NoMatchingPosition,
MissingPrefixAsterisk,
MissingSuffixAsterisk,
PrefixVerifyError,
SuffixVerifyError,
EmptyRange,
}
Expand description
Errors from position parser.
Variants§
NoMatchingPosition
Could not determine the position uniquely.
MissingPrefixAsterisk
The position is not P1
, so it requires an asterisk as the first character of the pattern.
MissingSuffixAsterisk
The position is not K3
, so it requires an asterisk as the last character of the pattern.
PrefixVerifyError
The prefix (string before the range section) conflicts with the estimated position.
SuffixVerifyError
The suffix (string after the range section) conflicts with the estimated position.
EmptyRange
Range section is empty. This pattern does not match any label.
Trait Implementations§
source§impl Clone for PositionError
impl Clone for PositionError
source§fn clone(&self) -> PositionError
fn clone(&self) -> PositionError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PositionError
impl Debug for PositionError
source§impl Display for PositionError
impl Display for PositionError
source§impl Error for PositionError
impl Error for PositionError
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 From<PositionError> for ParseError
impl From<PositionError> for ParseError
source§fn from(source: PositionError) -> Self
fn from(source: PositionError) -> Self
Converts to this type from the input type.
source§impl PartialEq for PositionError
impl PartialEq for PositionError
source§fn eq(&self, other: &PositionError) -> bool
fn eq(&self, other: &PositionError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for PositionError
impl StructuralPartialEq for PositionError
Auto Trait Implementations§
impl Freeze for PositionError
impl RefUnwindSafe for PositionError
impl Send for PositionError
impl Sync for PositionError
impl Unpin for PositionError
impl UnwindSafe for PositionError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more