Struct syntaxdot_encoders::EncodingProb[][src]

pub struct EncodingProb<E> { /* fields omitted */ }

An encoding with its probability.

Implementations

impl<E> EncodingProb<E> where
    E: ToOwned
[src]

pub fn new(encoding: E, prob: f32) -> Self[src]

Create an encoding with its probability.

This constructor takes an owned encoding.

pub fn encoding(&self) -> &E[src]

Get the encoding.

pub fn prob(&self) -> f32[src]

Get the probability of the encoding.

Trait Implementations

impl<E: Debug> Debug for EncodingProb<E>[src]

Auto Trait Implementations

impl<E> RefUnwindSafe for EncodingProb<E> where
    E: RefUnwindSafe

impl<E> Send for EncodingProb<E> where
    E: Send

impl<E> Sync for EncodingProb<E> where
    E: Sync

impl<E> Unpin for EncodingProb<E> where
    E: Unpin

impl<E> UnwindSafe for EncodingProb<E> where
    E: UnwindSafe

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