pub struct Hypothesis<L: ArcLabel> {
pub words: Vec<L>,
pub weight: CompactLatticeWeight<L>,
}Expand description
One answer read off a compact lattice.
Fields§
§words: Vec<L>The words, epsilons removed.
weight: CompactLatticeWeight<L>The cost, still in its two halves, with the frames each word spanned.
Implementations§
Trait Implementations§
Source§impl<L: Clone + ArcLabel> Clone for Hypothesis<L>
impl<L: Clone + ArcLabel> Clone for Hypothesis<L>
Source§fn clone(&self) -> Hypothesis<L>
fn clone(&self) -> Hypothesis<L>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<L: PartialEq + ArcLabel> StructuralPartialEq for Hypothesis<L>
Auto Trait Implementations§
impl<L> Freeze for Hypothesis<L>
impl<L> RefUnwindSafe for Hypothesis<L>
impl<L> Send for Hypothesis<L>
impl<L> Sync for Hypothesis<L>
impl<L> Unpin for Hypothesis<L>
impl<L> UnsafeUnpin for Hypothesis<L>
impl<L> UnwindSafe for Hypothesis<L>
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