Trait bio_seq::codec::Codec

source ·
pub trait Codec: Copy + Clone + Into<u8> + PartialEq {
    type Error: Error + Display;

    const WIDTH: u8;

    // Required methods
    fn unsafe_from_bits(b: u8) -> Self;
    fn try_from_bits(b: u8) -> Result<Self, Self::Error>;
    fn from_char(c: char) -> Result<Self, Self::Error>;
    fn to_char(self) -> char;
}

Required Associated Types§

Required Associated Constants§

Required Methods§

source

fn unsafe_from_bits(b: u8) -> Self

source

fn try_from_bits(b: u8) -> Result<Self, Self::Error>

source

fn from_char(c: char) -> Result<Self, Self::Error>

source

fn to_char(self) -> char

Implementors§