pub enum NonsensicalError {
MismatchedContigs {
start: Contig,
end: Contig,
},
MismatchedStrands {
start: Strand,
end: Strand,
},
NegativelySized {
start: Number,
end: Number,
strand: Strand,
},
}Expand description
An error related to the creation of a nonsensical interval.
Variants§
MismatchedContigs
A mismatched contig error.
This error occurs when one attempts to clamp an interval with another interval that is not located on the same contig.
Fields
MismatchedStrands
A mismatched strand error.
This error occurs when one attempts to clamp an interval with another interval that is not located on the same strand.
Fields
NegativelySized
A negative sized interval.
This error occurs when the start of the interval comes after the end of the interval.
On positive stranded intervals, this is when the start position is greater than the end position. On negative stranded intervals, this is when the start position is less than the end position.
Trait Implementations§
Source§impl Debug for NonsensicalError
impl Debug for NonsensicalError
Source§impl Display for NonsensicalError
impl Display for NonsensicalError
Source§impl Error for NonsensicalError
impl Error for NonsensicalError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<NonsensicalError> for Error
impl From<NonsensicalError> for Error
Source§fn from(source: NonsensicalError) -> Self
fn from(source: NonsensicalError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for NonsensicalError
impl PartialEq for NonsensicalError
impl Eq for NonsensicalError
impl StructuralPartialEq for NonsensicalError
Auto Trait Implementations§
impl Freeze for NonsensicalError
impl RefUnwindSafe for NonsensicalError
impl Send for NonsensicalError
impl Sync for NonsensicalError
impl Unpin for NonsensicalError
impl UnwindSafe for NonsensicalError
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