[][src]Struct aa_colour::AaColour

pub struct AaColour { /* fields omitted */ }

Amino acid background colour

Implementations

impl AaColour[src]

pub fn colour<P: Palette>(x: char) -> Result<Self, AaColourError>[src]

Coloured amino acid according to its name

Errors

Fails if x is not a 1-letter code for an amino acid

Example

use aa_colour::{AaColour, palettes::Clustal};

let coloured_aa = AaColour::colour::<Clustal>('C');

pub fn blank<P: Palette>(x: char) -> Result<Self, AaColourError>[src]

Uncoloured amino acid

Errors

Fails if x is not a 1-letter code for an amino acid (TODO)

Example

use aa_colour::{AaColour, palettes::Clustal};

let blank_aa = AaColour::blank::<Clustal>('C');

Trait Implementations

impl Clone for AaColour[src]

impl Debug for AaColour[src]

impl Display for AaColour[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.