pub enum ClampError {
MismatchedContigs {
original: Contig,
operand: Contig,
},
MismatchedStrand {
original: Strand,
operand: Strand,
},
}Expand description
An error that occurs during clamping.
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
MismatchedStrand
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.
Trait Implementations§
Source§impl Debug for ClampError
impl Debug for ClampError
Source§impl Display for ClampError
impl Display for ClampError
Source§impl Error for ClampError
impl Error for ClampError
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<ClampError> for Error
impl From<ClampError> for Error
Source§fn from(source: ClampError) -> Self
fn from(source: ClampError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ClampError
impl PartialEq for ClampError
impl Eq for ClampError
impl StructuralPartialEq for ClampError
Auto Trait Implementations§
impl Freeze for ClampError
impl RefUnwindSafe for ClampError
impl Send for ClampError
impl Sync for ClampError
impl Unpin for ClampError
impl UnwindSafe for ClampError
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