rsvart 0.1.5

A small library for representing genomic variants and regions.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use super::VariantType;

trait Variant {
    fn id(&self) -> &str;

    fn reference(&self) -> &str;

    fn alternate(&self) -> &str;

    fn change_length(&self) -> u32;

    // TODO - I think we need to own the VariantType in the Variant implementations.
    //  We may not be able to provide a default implementation as in Java, unless we change may need to
    fn variant_type(&self) -> &VariantType;
}