Struct rustfst::algorithms::compose::LabelReachable
source · pub struct LabelReachable { /* private fields */ }
Implementations§
source§impl LabelReachable
impl LabelReachable
pub fn new<W: Semiring, F: Fst<W>>(fst: &F, reach_input: bool) -> Result<Self>
pub fn compute_data<W: Semiring, F: Fst<W>>( fst: &F, reach_input: bool ) -> Result<LabelReachableData>
pub fn new_from_data(data: Arc<LabelReachableData>) -> Self
pub fn data(&self) -> &Arc<LabelReachableData>
pub fn reach_input(&self) -> bool
pub fn reach_init<W: Semiring, F: Fst<W>>( &mut self, fst: &F, reach_input: bool ) -> Result<()>
pub fn reach_label(&self, current_state: StateId, label: Label) -> Result<bool>
pub fn reach_final(&self, current_state: StateId) -> Result<bool>
pub fn reach<'a, W: Semiring + 'a, T: Trs<W>>( &self, current_state: StateId, trs: T, aiter_begin: usize, aiter_end: usize, compute_weight: bool ) -> Result<Option<(usize, usize, W)>>
Trait Implementations§
source§impl Clone for LabelReachable
impl Clone for LabelReachable
source§fn clone(&self) -> LabelReachable
fn clone(&self) -> LabelReachable
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 LabelReachable
impl Debug for LabelReachable
source§impl PartialEq for LabelReachable
impl PartialEq for LabelReachable
source§fn eq(&self, other: &LabelReachable) -> bool
fn eq(&self, other: &LabelReachable) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for LabelReachable
Auto Trait Implementations§
impl Freeze for LabelReachable
impl RefUnwindSafe for LabelReachable
impl Send for LabelReachable
impl Sync for LabelReachable
impl Unpin for LabelReachable
impl UnwindSafe for LabelReachable
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