[]Struct bio::stats::probs::PHREDProb

pub struct PHREDProb(pub f64);

A newtype for PHRED-scale probabilities.

Example

#[macro_use]
extern crate approx;
use bio::stats::{PHREDProb, Prob};

let p = PHREDProb::from(Prob(0.5));

assert_relative_eq!(*Prob::from(p), *Prob(0.5));

Trait Implementations

impl Clone for PHREDProb

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Copy for PHREDProb

impl From<f64> for PHREDProb

impl From<PHREDProb> for f64

impl From<PHREDProb> for Prob[src]

impl From<PHREDProb> for LogProb[src]

impl From<Prob> for PHREDProb[src]

impl From<LogProb> for PHREDProb[src]

impl Default for PHREDProb[src]

impl PartialEq<PHREDProb> for PHREDProb

impl PartialOrd<PHREDProb> for PHREDProb

impl Debug for PHREDProb

impl Add<PHREDProb> for PHREDProb

type Output = PHREDProb

The resulting type after applying the + operator.

impl<'a> Add<&'a PHREDProb> for &'a PHREDProb

type Output = PHREDProb

The resulting type after applying the + operator.

impl<'a> Add<&'a PHREDProb> for PHREDProb

type Output = PHREDProb

The resulting type after applying the + operator.

impl<'a> Add<PHREDProb> for &'a PHREDProb

type Output = PHREDProb

The resulting type after applying the + operator.

impl Sub<PHREDProb> for PHREDProb

type Output = PHREDProb

The resulting type after applying the - operator.

impl<'a> Sub<&'a PHREDProb> for &'a PHREDProb

type Output = PHREDProb

The resulting type after applying the - operator.

impl<'a> Sub<&'a PHREDProb> for PHREDProb

type Output = PHREDProb

The resulting type after applying the - operator.

impl<'a> Sub<PHREDProb> for &'a PHREDProb

type Output = PHREDProb

The resulting type after applying the - operator.

impl Deref for PHREDProb

type Target = f64

The resulting type after dereferencing.

impl Zero for PHREDProb[src]

fn set_zero(&mut self)[src]

Sets self to the additive identity element of Self, 0.

impl Serialize for PHREDProb[src]

impl<'de> Deserialize<'de> for PHREDProb[src]

Auto Trait Implementations

Blanket Implementations

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, 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.

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

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

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

impl<M> Measure for M where
    M: Debug + PartialOrd<M> + Add<M, Output = M> + Default + Clone
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]