Enum noodles::bam::record::sequence::Base[][src]

pub enum Base {
Show 16 variants Eq, A, C, M, G, R, S, V, T, W, Y, H, K, D, B, N,
}
Expand description

A BAM record sequence base.

Variants

Eq

Equal to the reference base.

A

Adenine.

C

Cytosine.

M

Amino.

G

Guanine.

R

Purine.

S

Strong.

V

Not T.

T

Thymine.

W

Weak.

Y

Pyrimidine.

H

Not G.

K

Keto.

D

Not C.

B

Not A.

N

Any base.

Implementations

Returns the complement of this base.

See https://en.wikipedia.org/wiki/Nucleic_acid_notation#IUPAC_notation.

Examples

use noodles_bam::record::sequence::Base;
assert_eq!(Base::A.complement(), Base::T);
assert_eq!(Base::C.complement(), Base::G);
assert_eq!(Base::G.complement(), Base::C);
assert_eq!(Base::T.complement(), Base::A);

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Compare self to key and return true if they are equal.

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.