bio_seq::codec

Trait Complement

source
pub trait Complement {
    // Required method
    fn comp(&self) -> Self;

    // Provided method
    fn comp_assign(&mut self)
       where Self: Sized { ... }
}
Expand description

Nucleotides and nucleotide sequences can be complemented

Required Methods§

source

fn comp(&self) -> Self

use bio_seq::prelude::{Dna, Complement};
assert_eq!(Dna::A.comp(), Dna::T);

Provided Methods§

source

fn comp_assign(&mut self)
where Self: Sized,

Complement a value in place

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Complement for bio_seq::codec::dna::Dna

source§

impl Complement for bio_seq::codec::text::Dna