pub struct CommonIssuesFixer {
pub remove_gaps: bool,
}Fields§
§remove_gaps: boolImplementations§
Trait Implementations§
Source§impl AsyncBaseProcessor for CommonIssuesFixer
impl AsyncBaseProcessor for CommonIssuesFixer
Source§fn process_async<'life0, 'life1, 'async_trait>(
&'life0 self,
srt: SubRipFile,
language: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<(SubRipFile, bool), SubtitleError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn process_async<'life0, 'life1, 'async_trait>(
&'life0 self,
srt: SubRipFile,
language: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<(SubRipFile, bool), SubtitleError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Processes a
SubRipFile and reports whether the output changed.Source§fn from_srt_async<'life0, 'life1, 'async_trait>(
&'life0 self,
srt: SubRipFile,
language: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<(SubRipFile, bool), SubtitleError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn from_srt_async<'life0, 'life1, 'async_trait>(
&'life0 self,
srt: SubRipFile,
language: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<(SubRipFile, bool), SubtitleError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Applies subtitle cleanup or transformation passes in async applications. Read more
Source§fn from_file_async<'life0, 'life1, 'async_trait, P>(
&'life0 self,
file: P,
language: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<(SubRipFile, bool), SubtitleError>> + Send + 'async_trait>>
fn from_file_async<'life0, 'life1, 'async_trait, P>( &'life0 self, file: P, language: Option<&'life1 str>, ) -> Pin<Box<dyn Future<Output = Result<(SubRipFile, bool), SubtitleError>> + Send + 'async_trait>>
Reads an SRT file asynchronously and processes it.
Source§fn from_string_async<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
data: &'life1 str,
language: Option<&'life2 str>,
) -> Pin<Box<dyn Future<Output = Result<(SubRipFile, bool), SubtitleError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn from_string_async<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
data: &'life1 str,
language: Option<&'life2 str>,
) -> Pin<Box<dyn Future<Output = Result<(SubRipFile, bool), SubtitleError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Parses an SRT string and processes it in an async context.
Source§impl BaseProcessor for CommonIssuesFixer
impl BaseProcessor for CommonIssuesFixer
Source§fn process(
&self,
srt: SubRipFile,
language: Option<&str>,
) -> Result<(SubRipFile, bool), SubtitleError>
fn process( &self, srt: SubRipFile, language: Option<&str>, ) -> Result<(SubRipFile, bool), SubtitleError>
Processes a
SubRipFile and reports whether the output changed.Source§fn from_srt(
&self,
srt: SubRipFile,
language: Option<&str>,
) -> Result<(SubRipFile, bool), SubtitleError>
fn from_srt( &self, srt: SubRipFile, language: Option<&str>, ) -> Result<(SubRipFile, bool), SubtitleError>
Applies subtitle cleanup or transformation passes to
SubRipFile values.Source§fn from_file<P: AsRef<Path>>(
&self,
file: P,
language: Option<&str>,
) -> Result<(SubRipFile, bool), SubtitleError>
fn from_file<P: AsRef<Path>>( &self, file: P, language: Option<&str>, ) -> Result<(SubRipFile, bool), SubtitleError>
Reads an SRT file and processes it synchronously.
Source§fn from_string(
&self,
data: &str,
language: Option<&str>,
) -> Result<(SubRipFile, bool), SubtitleError>
fn from_string( &self, data: &str, language: Option<&str>, ) -> Result<(SubRipFile, bool), SubtitleError>
Parses an SRT string and processes it synchronously.
Source§impl Clone for CommonIssuesFixer
impl Clone for CommonIssuesFixer
Source§fn clone(&self) -> CommonIssuesFixer
fn clone(&self) -> CommonIssuesFixer
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CommonIssuesFixer
impl RefUnwindSafe for CommonIssuesFixer
impl Send for CommonIssuesFixer
impl Sync for CommonIssuesFixer
impl Unpin for CommonIssuesFixer
impl UnsafeUnpin for CommonIssuesFixer
impl UnwindSafe for CommonIssuesFixer
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