Complement

Trait Complement 

Source
pub trait Complement: ComplementMut + ToOwned
where <Self as ToOwned>::Owned: ComplementMut,
{ // Provided method fn to_comp(&self) -> <Self as ToOwned>::Owned { ... } }

Provided Methods§

Source

fn to_comp(&self) -> <Self as ToOwned>::Owned

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

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§

Source§

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

Source§

impl Complement for Iupac

Source§

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

Source§

impl<A: Codec + ComplementMut> Complement for Seq<A>

Source§

impl<A: Codec + ComplementMut> Complement for SeqSlice<A>

Source§

impl<const K: usize> Complement for Kmer<Dna, K, usize>