pub struct TextRun {
pub text: String,
pub class: Vec<String>,
pub time: Option<RunTime>,
}Expand description
A piece of a text that animators’ Class and Timing selectors can pick.
Fields§
§text: StringNon-empty; \n starts a line. A grapheme cluster spanning two runs belongs to the run
holding its first byte.
class: Vec<String>Names Class selectors match, each 1 to 64 bytes of A-Z, a-z, 0-9, _ and -; at
most MAX_RUN_CLASSES.
time: Option<RunTime>When the run is said, from the holder’s start (a caption cue’s start, or a text generator’s picture time zero).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TextRun
impl<'de> Deserialize<'de> for TextRun
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for TextRun
Auto Trait Implementations§
impl Freeze for TextRun
impl RefUnwindSafe for TextRun
impl Send for TextRun
impl Sync for TextRun
impl Unpin for TextRun
impl UnsafeUnpin for TextRun
impl UnwindSafe for TextRun
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