Struct wfst::semiring::floatweight::LogWeight
[−]
[src]
pub struct LogWeight<T: Float<T>> { /* fields omitted */ }
Methods
impl<T: Float<T>> LogWeight<T>
[src]
Trait Implementations
impl<T: Float<T>> RandomWeight for LogWeight<T>
[src]
impl<T: Clone + Float<T>> Clone for LogWeight<T>
[src]
fn clone(&self) -> LogWeight<T>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T: Debug + Float<T>> Debug for LogWeight<T>
[src]
impl<T: Hash + Float<T>> Hash for LogWeight<T>
[src]
fn hash<__HT: Hasher>(&self, __arg_0: &mut __HT)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<T: Encodable + Float<T>> Encodable for LogWeight<T>
[src]
fn encode<__ST: Encoder>(&self, __arg_0: &mut __ST) -> Result<(), __ST::Error>
[src]
Serialize a value using an Encoder
.
impl<T: Decodable + Float<T>> Decodable for LogWeight<T>
[src]
fn decode<__DT: Decoder>(
__arg_0: &mut __DT
) -> Result<LogWeight<T>, __DT::Error>
[src]
__arg_0: &mut __DT
) -> Result<LogWeight<T>, __DT::Error>
Deserialize a value using a Decoder
.
impl<T: Float<T>> Weight for LogWeight<T>
[src]
fn plus(&self, rhs: &Self) -> Self
[src]
fn times(&self, rhs: &Self) -> Self
[src]
fn zero() -> Self
[src]
fn one() -> Self
[src]
fn none() -> Self
[src]
fn is_member(&self) -> bool
[src]
fn approx_eq(&self, rhs: &Self, delta: Option<f32>) -> bool
[src]
fn quantize(&self, delta: Option<f32>) -> Self
[src]
fn divide(&self, rhs: &Self, divtype: Option<DivideType>) -> Self
[src]
fn reverse(&self) -> Self
[src]
fn wtype() -> String
[src]
impl<T: Float<T>> PartialEq for LogWeight<T>
[src]
fn eq(&self, rhs: &Self) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.