[−][src]Struct rustfst::semirings::StringWeightRestrict
String semiring: (identity, ., Infinity, Epsilon)
Implementations
impl StringWeightRestrict
[src]
pub fn len_labels(&self) -> usize
[src]
pub fn iter(&self) -> impl Iterator<Item = StringWeightVariant> + '_
[src]
Trait Implementations
impl AsRef<StringWeightRestrict> for StringWeightRestrict
[src]
fn as_ref(&self) -> &StringWeightRestrict
[src]
impl Clone for StringWeightRestrict
[src]
fn clone(&self) -> StringWeightRestrict
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for StringWeightRestrict
[src]
impl Display for StringWeightRestrict
[src]
impl Eq for StringWeightRestrict
[src]
impl FactorIterator<StringWeightRestrict> for StringFactorRestrict
[src]
impl From<Vec<usize>> for StringWeightRestrict
[src]
impl From<usize> for StringWeightRestrict
[src]
impl Hash for StringWeightRestrict
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<StringWeightRestrict> for StringWeightRestrict
[src]
fn eq(&self, other: &StringWeightRestrict) -> bool
[src]
fn ne(&self, other: &StringWeightRestrict) -> bool
[src]
impl PartialOrd<StringWeightRestrict> for StringWeightRestrict
[src]
fn partial_cmp(&self, other: &StringWeightRestrict) -> Option<Ordering>
[src]
fn lt(&self, other: &StringWeightRestrict) -> bool
[src]
fn le(&self, other: &StringWeightRestrict) -> bool
[src]
fn gt(&self, other: &StringWeightRestrict) -> bool
[src]
fn ge(&self, other: &StringWeightRestrict) -> bool
[src]
impl ReverseBack<StringWeightRestrict> for <StringWeightRestrict as Semiring>::ReverseWeight
[src]
fn reverse_back(&self) -> Result<StringWeightRestrict>
[src]
impl Semiring for StringWeightRestrict
[src]
type Type = StringWeightVariant
type ReverseWeight = StringWeightRestrict
fn zero() -> Self
[src]
fn one() -> Self
[src]
fn new(value: Self::Type) -> Self
[src]
fn plus_assign<P: Borrow<Self>>(&mut self, rhs: P) -> Result<()>
[src]
fn times_assign<P: Borrow<Self>>(&mut self, rhs: P) -> Result<()>
[src]
fn value(&self) -> &Self::Type
[src]
fn take_value(self) -> Self::Type
[src]
fn set_value(&mut self, value: Self::Type)
[src]
fn reverse(&self) -> Result<Self::ReverseWeight>
[src]
fn properties() -> SemiringProperties
[src]
fn plus<P: Borrow<Self>>(&self, rhs: P) -> Result<Self>
[src]
fn times<P: Borrow<Self>>(&self, rhs: P) -> Result<Self>
[src]
fn is_one(&self) -> bool
[src]
fn is_zero(&self) -> bool
[src]
impl SerializableSemiring for StringWeightRestrict
[src]
fn weight_type() -> String
[src]
fn parse_binary(i: &[u8]) -> IResult<&[u8], Self>
[src]
fn write_binary<F: Write>(&self, file: &mut F) -> Result<()>
[src]
fn parse_text(i: &str) -> IResult<&str, Self>
[src]
fn write_text<F: Write>(&self, file: &mut F) -> Result<()>
[src]
impl StructuralEq for StringWeightRestrict
[src]
impl StructuralPartialEq for StringWeightRestrict
[src]
impl WeaklyDivisibleSemiring for StringWeightRestrict
[src]
fn divide_assign(&mut self, rhs: &Self, divide_type: DivideType) -> Result<()>
[src]
fn divide(&self, rhs: &Self, divide_type: DivideType) -> Result<Self>
[src]
impl WeightQuantize for StringWeightRestrict
[src]
Auto Trait Implementations
impl RefUnwindSafe for StringWeightRestrict
impl Send for StringWeightRestrict
impl Sync for StringWeightRestrict
impl Unpin for StringWeightRestrict
impl UnwindSafe for StringWeightRestrict
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
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> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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>,