Skip to main content

ReadData

Trait ReadData 

Source
pub trait ReadData:
    PartialEq
    + Hash
    + Serialize
    + DeserializeOwned
    + Debug
    + Clone
    + Copy
    + Eq
    + Send
    + Sync
    + Ord {
    // Required methods
    fn new(id: ID, tag: Tag) -> Self;
    fn read_data(
        gene_ids: &mut BiMap<String, ID>,
        read_name: &[u8],
        tag: Tag,
    ) -> Self;
    fn get_tag(&self) -> Option<Tag>;
    fn read_datas() -> ReadDatas;
}
Expand description

Trait for ReadData, IDs can only be generated from Marbel reads

Required Methods§

Source

fn new(id: ID, tag: Tag) -> Self

generate a read data from an ID and a tag

Source

fn read_data( gene_ids: &mut BiMap<String, ID>, read_name: &[u8], tag: Tag, ) -> Self

geneate a read data, IDs and IDTags can only be generated from Marbel reads

Source

fn get_tag(&self) -> Option<Tag>

if available, get a tag

Source

fn read_datas() -> ReadDatas

retrun a ReadDatas enum to check which kind of ReadData is present

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§