Struct rustfst::algorithms::compose::LabelReachableData
source · pub struct LabelReachableData { /* private fields */ }
Implementations§
source§impl LabelReachableData
impl LabelReachableData
pub fn new(reach_input: bool) -> Self
pub fn interval_set(&self, s: StateId) -> Result<&IntervalSet>
pub fn final_label(&self) -> Label
pub fn label2index(&self) -> &HashMap<Label, Label>
pub fn reach_input(&self) -> bool
pub fn relabel(&mut self, label: Label) -> Label
pub fn relabel_fst<W: Semiring, F: MutableFst<W>>( &mut self, fst: &mut F, relabel_input: bool ) -> Result<()>
pub fn relabel_pairs(&self, avoid_collisions: bool) -> Vec<(Label, Label)>
Trait Implementations§
source§impl Clone for LabelReachableData
impl Clone for LabelReachableData
source§fn clone(&self) -> LabelReachableData
fn clone(&self) -> LabelReachableData
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 Debug for LabelReachableData
impl Debug for LabelReachableData
source§impl PartialEq for LabelReachableData
impl PartialEq for LabelReachableData
source§fn eq(&self, other: &LabelReachableData) -> bool
fn eq(&self, other: &LabelReachableData) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for LabelReachableData
Auto Trait Implementations§
impl Freeze for LabelReachableData
impl RefUnwindSafe for LabelReachableData
impl Send for LabelReachableData
impl Sync for LabelReachableData
impl Unpin for LabelReachableData
impl UnwindSafe for LabelReachableData
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