Struct rustfst::algorithms::compose::lookahead_matchers::LookAheadMatcherData
source · pub struct LookAheadMatcherData<W: Semiring> {
pub lookahead_weight: W,
pub prefix_tr: Tr<W>,
}
Fields§
§lookahead_weight: W
§prefix_tr: Tr<W>
Implementations§
source§impl<W: Semiring> LookAheadMatcherData<W>
impl<W: Semiring> LookAheadMatcherData<W>
pub fn new(lookahead_weight: W, prefix_tr: Tr<W>) -> Self
pub fn clear_lookahead_weight(&mut self)
pub fn set_lookahead_weight(&mut self, weight: W)
pub fn clear_lookahead_prefix(&mut self)
pub fn set_lookahead_prefix(&mut self, tr: Tr<W>)
pub fn default_lookahead_prefix(&self, tr: &mut Tr<W>) -> bool
Trait Implementations§
source§impl<W: Clone + Semiring> Clone for LookAheadMatcherData<W>
impl<W: Clone + Semiring> Clone for LookAheadMatcherData<W>
source§fn clone(&self) -> LookAheadMatcherData<W>
fn clone(&self) -> LookAheadMatcherData<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 moreAuto Trait Implementations§
impl<W> Freeze for LookAheadMatcherData<W>where
W: Freeze,
impl<W> RefUnwindSafe for LookAheadMatcherData<W>where
W: RefUnwindSafe,
impl<W> Send for LookAheadMatcherData<W>where
W: Send,
impl<W> Sync for LookAheadMatcherData<W>
impl<W> Unpin for LookAheadMatcherData<W>where
W: Unpin,
impl<W> UnwindSafe for LookAheadMatcherData<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