pub struct StringPath<W: Semiring> { /* private fields */ }Expand description
Wrapper around FstPath to nicely handle SymbolTables.
Implementations§
Source§impl<W: Semiring> StringPath<W>
impl<W: Semiring> StringPath<W>
pub fn new( fst_path: FstPath<W>, isymt: Arc<SymbolTable>, osymt: Arc<SymbolTable>, ) -> Self
pub fn weight(&self) -> &W
pub fn ilabels(&self) -> &[Label] ⓘ
pub fn olabels(&self) -> &[Label] ⓘ
pub fn istring(&self) -> Result<String>
pub fn ostring(&self) -> Result<String>
Trait Implementations§
Source§impl<W: Clone + Semiring> Clone for StringPath<W>
impl<W: Clone + Semiring> Clone for StringPath<W>
Source§fn clone(&self) -> StringPath<W>
fn clone(&self) -> StringPath<W>
Returns a duplicate 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 StringPath<W>where
W: Freeze,
impl<W> RefUnwindSafe for StringPath<W>where
W: RefUnwindSafe,
impl<W> Send for StringPath<W>where
W: Send,
impl<W> Sync for StringPath<W>
impl<W> Unpin for StringPath<W>where
W: Unpin,
impl<W> UnwindSafe for StringPath<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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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