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> Display for Error<N>where
<N as FromStr>::Err: Debug + Display,
N: Display + Nucleotide,
ParseError<N>: Display,
Error<N>: Display,
impl<N> Display for Error<N>where
<N as FromStr>::Err: Debug + Display,
N: Display + Nucleotide,
ParseError<N>: Display,
Error<N>: Display,
Source§impl<N: Nucleotide> Error for Error<N>
impl<N: Nucleotide> Error for Error<N>
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<N: Nucleotide> From<ParseError<N>> for Error<N>
impl<N: Nucleotide> From<ParseError<N>> for Error<N>
Source§fn from(source: ParseError<N>) -> Self
fn from(source: ParseError<N>) -> Self
Converts to this type from the input type.
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> UnsafeUnpin 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