[][src]Trait compact_genome::Genome

pub trait Genome: for<'a> FromIterator<&'a u8> + FromIterator<u8> + Eq + Clone + Ord where
    &'a Self: IntoIterator<Item = u8>, 
{ fn reverse_complement(&self) -> Self;
fn len(&self) -> usize; fn is_valid(&self) -> bool { ... }
fn is_empty(&self) -> bool { ... }
fn into_vec(&self) -> Vec<u8> { ... } }

A genome string. It should be lexically ordered.

Required methods

fn reverse_complement(&self) -> Self

Returns the reverse complement of this genome.

Panics if this genome is not valid.

fn len(&self) -> usize

Returns the amount of bases in this genome string.

Loading content...

Provided methods

fn is_valid(&self) -> bool

Returns true if this genome is valid, i.e. it contains no invalid characters.

Valid characters are defined by is_valid_ascii_genome_character()

fn is_empty(&self) -> bool

Returns true if this genome string is empty.

fn into_vec(&self) -> Vec<u8>

Copies this genome string into a Vec.

Loading content...

Implementors

impl Genome for VectorGenome[src]

Loading content...