pub enum QuantifyMode {
Natural,
Exact,
Hedged,
}Expand description
How the quantifier should be framed.
Variants§
Natural
Natural default: 0 → “no”, 1 → “a single”, small numbers spelled or digit as appropriate, large numbers hedged to natural buckets.
Exact
Always emit a digit count. Still handles 0/1 specially (“no”, “a single”) because those read better even in exact contexts.
Hedged
Always hedge, even for small counts (“a few”, “a handful of”, “several”). Useful when counts come from noisy measurements.
Trait Implementations§
Source§impl Clone for QuantifyMode
impl Clone for QuantifyMode
Source§fn clone(&self) -> QuantifyMode
fn clone(&self) -> QuantifyMode
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 moreSource§impl Debug for QuantifyMode
impl Debug for QuantifyMode
Source§impl Default for QuantifyMode
impl Default for QuantifyMode
Source§fn default() -> QuantifyMode
fn default() -> QuantifyMode
Returns the “default value” for a type. Read more
Source§impl PartialEq for QuantifyMode
impl PartialEq for QuantifyMode
Source§fn eq(&self, other: &QuantifyMode) -> bool
fn eq(&self, other: &QuantifyMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for QuantifyMode
impl Eq for QuantifyMode
impl StructuralPartialEq for QuantifyMode
Auto Trait Implementations§
impl Freeze for QuantifyMode
impl RefUnwindSafe for QuantifyMode
impl Send for QuantifyMode
impl Sync for QuantifyMode
impl Unpin for QuantifyMode
impl UnsafeUnpin for QuantifyMode
impl UnwindSafe for QuantifyMode
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