pub struct SubtitleNormalizationOptions {
pub strip_markup: bool,
pub decode_basic_entities: bool,
pub collapse_whitespace: bool,
}Expand description
Options for subtitle text normalization.
Fields§
§strip_markup: boolStrip WebVTT/SRT markup used for subtitle rendering.
decode_basic_entities: boolDecode common HTML entities used in captions.
collapse_whitespace: boolCollapse all whitespace runs into one ASCII space.
Trait Implementations§
Source§impl Clone for SubtitleNormalizationOptions
impl Clone for SubtitleNormalizationOptions
Source§fn clone(&self) -> SubtitleNormalizationOptions
fn clone(&self) -> SubtitleNormalizationOptions
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 SubtitleNormalizationOptions
impl Debug for SubtitleNormalizationOptions
Auto Trait Implementations§
impl Freeze for SubtitleNormalizationOptions
impl RefUnwindSafe for SubtitleNormalizationOptions
impl Send for SubtitleNormalizationOptions
impl Sync for SubtitleNormalizationOptions
impl Unpin for SubtitleNormalizationOptions
impl UnsafeUnpin for SubtitleNormalizationOptions
impl UnwindSafe for SubtitleNormalizationOptions
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