pub struct GroupOpts {
pub max_chars: usize,
pub max_gap: f64,
pub punct: String,
pub max_words: usize,
}Expand description
How one-word segments are regrouped into sentences — every knob the “Regenerate” pass turns.
Fields§
§max_chars: usizeA sentence ends once it reaches this many characters.
max_gap: f64… or after a silence longer than this (seconds).
punct: String… or on a word ending with any of these characters (“” = never split on punctuation).
max_words: usize… or after this many words (0 = no word limit).
Trait Implementations§
impl StructuralPartialEq for GroupOpts
Auto Trait Implementations§
impl Freeze for GroupOpts
impl RefUnwindSafe for GroupOpts
impl Send for GroupOpts
impl Sync for GroupOpts
impl Unpin for GroupOpts
impl UnwindSafe for GroupOpts
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,
§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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