lib_tsshow 2.0.0

A visualiser for template-switch alignments
Documentation
use thiserror::Error;

pub type Result<T> = std::result::Result<T, Error>;

#[derive(Debug, Error)]
pub enum Error {
    #[error("I/O error: {0}")]
    Io(#[from] std::io::Error),

    #[error("Alignment is incomplete, and hence cannot be rendered.")]
    AlignmentHasNoTarget,

    #[error("No-TS alignment is incomplete, and hence cannot be rendered.")]
    NoTsAlignmentHasNoTarget,

    #[error("A negative anti-primary gap is not supported for SVG generation.")]
    SvgNegativeAntiPrimaryGap,

    #[error("Forward TSes are not yet supported.")]
    ForwardTsNotSupported,
}