pub struct LatticeDecodeOptions {
pub search: DecodeOptions,
pub lattice_beam: f32,
}Expand description
How wide to search, and how much of what was found to keep.
Fields§
§search: DecodeOptionsThe beam the search itself runs under.
lattice_beam: f32Paths worse than the best by more than this are dropped from the lattice.
Separate from search.beam, and usually smaller: the search beam has to
be generous because a path that looks bad now may win later, while the
lattice beam judges finished paths and can afford to be strict.
f32::INFINITY keeps everything the search saw.
Implementations§
Source§impl LatticeDecodeOptions
impl LatticeDecodeOptions
Sourcepub fn exhaustive() -> Self
pub fn exhaustive() -> Self
No beam anywhere: the lattice is the whole of graph ∘ dense.
What the tests compare against, since it is the only setting under which the lattice and the composition are the same object.
Trait Implementations§
Source§impl Clone for LatticeDecodeOptions
impl Clone for LatticeDecodeOptions
Source§fn clone(&self) -> LatticeDecodeOptions
fn clone(&self) -> LatticeDecodeOptions
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 Copy for LatticeDecodeOptions
Source§impl Debug for LatticeDecodeOptions
impl Debug for LatticeDecodeOptions
Source§impl Default for LatticeDecodeOptions
impl Default for LatticeDecodeOptions
Source§impl PartialEq for LatticeDecodeOptions
impl PartialEq for LatticeDecodeOptions
impl StructuralPartialEq for LatticeDecodeOptions
Auto Trait Implementations§
impl Freeze for LatticeDecodeOptions
impl RefUnwindSafe for LatticeDecodeOptions
impl Send for LatticeDecodeOptions
impl Sync for LatticeDecodeOptions
impl Unpin for LatticeDecodeOptions
impl UnsafeUnpin for LatticeDecodeOptions
impl UnwindSafe for LatticeDecodeOptions
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