[−][src]Trait compact_genome::Genome
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.
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
.