Module script

Source
Expand description

ASS script container with zero-copy lifetime-generic design

The Script struct provides the main API for accessing parsed ASS content while maintaining zero-copy semantics through lifetime-generic spans.

Structs§

BatchUpdateResult
Result of a batch update operation
ChangeTracker
Tracks changes made to the script
EventBatch
A batch of event additions
Script
Main ASS script container with zero-copy lifetime-generic design
ScriptBuilder
Builder for configuring script parsing with optional extensions
ScriptDelta
Incremental parsing delta for efficient editor updates
ScriptDeltaOwned
Owned variant of ScriptDelta for incremental parsing with lifetime independence
StyleBatch
A batch of style additions
UpdateOperation
A batch update operation

Enums§

Change
Represents a change in the script
LineContent
Parsed line content for context-aware parsing

Functions§

calculate_delta
Calculate differences between two Scripts