pub trait TextEventInterface {
    // Required methods
    fn text(&self) -> String;
    fn set_text(&mut self, text: String);
}
Expand description

Interface for getting/modifying textual subtitle event fields. Required for implementation of TextEvent.

Not recommended to use this trait outside of the implementation of TextEvent, as it will pollute the namespace of subtitle event type properties.

Required Methods§

source

fn text(&self) -> String

Text associated with event

source

fn set_text(&mut self, text: String)

Modify text associated with event

Implementors§