[][src]Enum varlociraptor::utils::MiniLogProb

pub enum MiniLogProb {
    F16(f16),
    F32(f32),
}

Variants

F16(f16)
F32(f32)

Implementations

impl MiniLogProb[src]

pub fn new(prob: LogProb) -> Self[src]

Convert LogProb into a minimal representation for storage. If integer part is less than -1 and can be represented in f16, we use f16. Else, we use f32.

pub fn to_logprob(&self) -> LogProb[src]

Trait Implementations

impl Clone for MiniLogProb[src]

impl Copy for MiniLogProb[src]

impl Debug for MiniLogProb[src]

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

impl Serialize for MiniLogProb[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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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, 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<V, T> VZip<V> for T where
    V: MultiLane<T>,