1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/// Codon from string literal
#[macro_export]
macro_rules! codon {
  ($l:literal) => {{
    jean::codon::Codon::try_from($l).unwrap()
  }};
}

/// `Dna` from string literal
#[macro_export]
macro_rules! dna {
  ($l:literal) => {{
    jean::dna::Dna::try_from($l).unwrap()
  }};
}

/// `Protein` from string literal
#[macro_export]
macro_rules! protein {
  ($l:literal) => {{
    jean::protein::Protein::try_from($l).unwrap()
  }};
}

/// `Rna` from string literal
#[macro_export]
macro_rules! rna {
  ($l:literal) => {{
    jean::rna::Rna::try_from($l).unwrap()
  }};
}