Struct rustfst::algorithms::compose::filter_states::WeightFilterState
source · pub struct WeightFilterState<W> { /* private fields */ }
Expand description
Filter state that is a weight implementing the Semiring trait.
Trait Implementations§
source§impl<W: Clone> Clone for WeightFilterState<W>
impl<W: Clone> Clone for WeightFilterState<W>
source§fn clone(&self) -> WeightFilterState<W>
fn clone(&self) -> WeightFilterState<W>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<W: Debug> Debug for WeightFilterState<W>
impl<W: Debug> Debug for WeightFilterState<W>
source§impl<W: Semiring> FilterState for WeightFilterState<W>
impl<W: Semiring> FilterState for WeightFilterState<W>
source§impl<W: Hash> Hash for WeightFilterState<W>
impl<W: Hash> Hash for WeightFilterState<W>
source§impl<W: PartialEq> PartialEq for WeightFilterState<W>
impl<W: PartialEq> PartialEq for WeightFilterState<W>
source§fn eq(&self, other: &WeightFilterState<W>) -> bool
fn eq(&self, other: &WeightFilterState<W>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<T: SerializableSemiring> SerializeBinary for WeightFilterState<T>
impl<T: SerializableSemiring> SerializeBinary for WeightFilterState<T>
source§fn parse_binary(i: &[u8]) -> IResult<&[u8], Self, NomCustomError<&[u8]>>
fn parse_binary(i: &[u8]) -> IResult<&[u8], Self, NomCustomError<&[u8]>>
Parse a struct of type Self from a binary buffer.
impl<W: Eq> Eq for WeightFilterState<W>
impl<W> StructuralPartialEq for WeightFilterState<W>
Auto Trait Implementations§
impl<W> Freeze for WeightFilterState<W>where
W: Freeze,
impl<W> RefUnwindSafe for WeightFilterState<W>where
W: RefUnwindSafe,
impl<W> Send for WeightFilterState<W>where
W: Send,
impl<W> Sync for WeightFilterState<W>where
W: Sync,
impl<W> Unpin for WeightFilterState<W>where
W: Unpin,
impl<W> UnwindSafe for WeightFilterState<W>where
W: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more