pub struct TtmlParagraph {
pub begin_ms: u64,
pub end_ms: u64,
pub spans: Vec<TtmlSpan>,
pub region: Option<String>,
}Expand description
A TTML paragraph (block-level subtitle).
Fields§
§begin_ms: u64Start time in milliseconds.
end_ms: u64End time in milliseconds.
spans: Vec<TtmlSpan>§region: Option<String>Implementations§
Source§impl TtmlParagraph
impl TtmlParagraph
Sourcepub fn plain_text(&self) -> String
pub fn plain_text(&self) -> String
Plain text content of this paragraph.
Trait Implementations§
Source§impl Clone for TtmlParagraph
impl Clone for TtmlParagraph
Source§fn clone(&self) -> TtmlParagraph
fn clone(&self) -> TtmlParagraph
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 TtmlParagraph
impl RefUnwindSafe for TtmlParagraph
impl Send for TtmlParagraph
impl Sync for TtmlParagraph
impl Unpin for TtmlParagraph
impl UnsafeUnpin for TtmlParagraph
impl UnwindSafe for TtmlParagraph
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more