pub struct DeterminizeLatticeOptions {
pub delta: f32,
pub max_states: Option<usize>,
}Expand description
What determinize_lattice may be asked to do differently.
Fields§
§delta: f32How closely two subsets’ weights must agree to count as the same subset.
max_states: Option<usize>A cap on the states built, or None for no cap.
Determinizing a lattice can produce far more states than it consumed, and a decoder that is otherwise bounded should not become unbounded here. Reaching the cap is reported rather than truncated: half a lattice looks exactly like a whole one to everything downstream.
Trait Implementations§
Source§impl Clone for DeterminizeLatticeOptions
impl Clone for DeterminizeLatticeOptions
Source§fn clone(&self) -> DeterminizeLatticeOptions
fn clone(&self) -> DeterminizeLatticeOptions
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 DeterminizeLatticeOptions
Source§impl Debug for DeterminizeLatticeOptions
impl Debug for DeterminizeLatticeOptions
Source§impl Default for DeterminizeLatticeOptions
impl Default for DeterminizeLatticeOptions
impl StructuralPartialEq for DeterminizeLatticeOptions
Auto Trait Implementations§
impl Freeze for DeterminizeLatticeOptions
impl RefUnwindSafe for DeterminizeLatticeOptions
impl Send for DeterminizeLatticeOptions
impl Sync for DeterminizeLatticeOptions
impl Unpin for DeterminizeLatticeOptions
impl UnsafeUnpin for DeterminizeLatticeOptions
impl UnwindSafe for DeterminizeLatticeOptions
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