pub struct GroupRules {
pub max_words: usize,
pub max_span_ms: u64,
pub max_gap_ms: u64,
pub sentence_min_words: usize,
pub min_cue_ms: u64,
}Expand description
Rules for group_words, the lightweight cue grouper for engines whose
words are already clean (no line breaking, no reading-speed limits). Use
build_cues for caption-grade segmentation.
Fields§
§max_words: usizeA cue closes once it holds this many words.
max_span_ms: u64A cue closes once its span reaches this length.
max_gap_ms: u64A gap larger than this between words starts a new cue.
sentence_min_words: usizeSentence-final punctuation (., ?, !) closes a cue holding at
least this many words.
min_cue_ms: u64Cues shorter than this are widened to it (zero-width cues never export).
Trait Implementations§
Source§impl Clone for GroupRules
impl Clone for GroupRules
impl Copy for GroupRules
Source§impl Debug for GroupRules
impl Debug for GroupRules
Source§impl Default for GroupRules
impl Default for GroupRules
Source§impl<'de> Deserialize<'de> for GroupRules
impl<'de> Deserialize<'de> for GroupRules
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for GroupRules
Source§impl PartialEq for GroupRules
impl PartialEq for GroupRules
Source§impl Serialize for GroupRules
impl Serialize for GroupRules
impl StructuralPartialEq for GroupRules
Auto Trait Implementations§
impl Freeze for GroupRules
impl RefUnwindSafe for GroupRules
impl Send for GroupRules
impl Sync for GroupRules
impl Unpin for GroupRules
impl UnsafeUnpin for GroupRules
impl UnwindSafe for GroupRules
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