pub enum Error<N: Nucleotide>{
Identical(N),
Parse(ParseError<N>),
Relation(Error<N>),
}Expand description
An error related to a Variant.
Variants§
Identical(N)
Attempted to create a Variant with identical reference and
alternate nucleotides.
Parse(ParseError<N>)
Unsuccessfully attempted to parse a Variant from a string.
Relation(Error<N>)
An error constructing a relation.
Trait Implementations§
Source§impl<N: Nucleotide> Display for Error<N>
impl<N: Nucleotide> Display for Error<N>
Source§impl<N: Nucleotide> Error for Error<N>
impl<N: Nucleotide> Error for Error<N>
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()
Auto Trait Implementations§
impl<N> Freeze for Error<N>
impl<N> RefUnwindSafe for Error<N>
impl<N> Send for Error<N>
impl<N> Sync for Error<N>
impl<N> Unpin for Error<N>
impl<N> UnwindSafe for Error<N>
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