[−]Struct bio::stats::probs::PHREDProb
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(&self) -> 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
fn partial_cmp(&self, other: &PHREDProb) -> Option<Ordering>
fn lt(&self, other: &PHREDProb) -> bool
fn le(&self, other: &PHREDProb) -> bool
fn gt(&self, other: &PHREDProb) -> bool
fn ge(&self, other: &PHREDProb) -> bool
impl Debug for PHREDProb
impl Add<PHREDProb> for PHREDProb
type Output = PHREDProb
The resulting type after applying the +
operator.
fn add(self, rhs: Self) -> PHREDProb
impl<'a> Add<&'a PHREDProb> for &'a PHREDProb
type Output = PHREDProb
The resulting type after applying the +
operator.
fn add(self, rhs: Self) -> PHREDProb
impl<'a> Add<&'a PHREDProb> for PHREDProb
type Output = PHREDProb
The resulting type after applying the +
operator.
fn add(self, rhs: &'a PHREDProb) -> PHREDProb
impl<'a> Add<PHREDProb> for &'a PHREDProb
type Output = PHREDProb
The resulting type after applying the +
operator.
fn add(self, rhs: PHREDProb) -> PHREDProb
impl Sub<PHREDProb> for PHREDProb
type Output = PHREDProb
The resulting type after applying the -
operator.
fn sub(self, rhs: Self) -> PHREDProb
impl<'a> Sub<&'a PHREDProb> for &'a PHREDProb
type Output = PHREDProb
The resulting type after applying the -
operator.
fn sub(self, rhs: Self) -> PHREDProb
impl<'a> Sub<&'a PHREDProb> for PHREDProb
type Output = PHREDProb
The resulting type after applying the -
operator.
fn sub(self, rhs: &'a PHREDProb) -> PHREDProb
impl<'a> Sub<PHREDProb> for &'a PHREDProb
type Output = PHREDProb
The resulting type after applying the -
operator.
fn sub(self, rhs: PHREDProb) -> PHREDProb
impl Deref for PHREDProb
impl Zero for PHREDProb
[src]
fn zero() -> Self
[src]
fn is_zero(&self) -> bool
[src]
fn set_zero(&mut self)
[src]
Sets self
to the additive identity element of Self
, 0
.
impl Serialize for PHREDProb
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for PHREDProb
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Sync for PHREDProb
impl Unpin for PHREDProb
impl Send for PHREDProb
impl UnwindSafe for PHREDProb
impl RefUnwindSafe for PHREDProb
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<M> Measure for M where
M: Debug + PartialOrd<M> + Add<M, Output = M> + Default + Clone,
[src]
M: Debug + PartialOrd<M> + Add<M, Output = M> + Default + Clone,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,