Struct ScriptGenerator

Source
pub struct ScriptGenerator {
    pub title: String,
    pub styles_count: usize,
    pub events_count: usize,
    pub complexity_level: ComplexityLevel,
}
Expand description

Synthetic ASS script generator for benchmarking

Fields§

§title: String

Script title for metadata

§styles_count: usize

Number of styles to generate

§events_count: usize

Number of events to generate

§complexity_level: ComplexityLevel

Complexity level for generated content

Implementations§

Source§

impl ScriptGenerator

Source

pub fn simple(events_count: usize) -> Self

Create generator for simple scripts

Source

pub fn moderate(events_count: usize) -> Self

Create generator for moderate complexity scripts

Source

pub fn complex(events_count: usize) -> Self

Create generator for complex scripts

Source

pub fn extreme(events_count: usize) -> Self

Create generator for extreme complexity scripts

Source

pub fn anime_realistic(events_count: usize) -> Self

Create generator for anime-style subtitles

Source

pub fn movie_realistic(events_count: usize) -> Self

Create generator for movie subtitles

Source

pub fn karaoke_realistic(events_count: usize) -> Self

Create generator for karaoke files

Source

pub fn sign_realistic(events_count: usize) -> Self

Create generator for sign translation subtitles

Source

pub fn educational_realistic(events_count: usize) -> Self

Create generator for educational content

Source

pub fn generate(&self) -> String

Generate complete ASS script as string

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.