pub struct SubtitleFrame {
pub width: u16,
pub height: u16,
pub compositions: Vec<SubtitleComposition>,
}Expand description
A complete subtitle frame with all compositions.
Fields§
§width: u16§height: u16§compositions: Vec<SubtitleComposition>Implementations§
Source§impl SubtitleFrame
impl SubtitleFrame
pub fn width(&self) -> u16
pub fn height(&self) -> u16
Sourcepub fn composition_count(&self) -> usize
pub fn composition_count(&self) -> usize
Get the number of compositions.
Sourcepub fn get_composition(&self, index: usize) -> Option<SubtitleComposition>
pub fn get_composition(&self, index: usize) -> Option<SubtitleComposition>
Get a composition by index.
Auto Trait Implementations§
impl Freeze for SubtitleFrame
impl RefUnwindSafe for SubtitleFrame
impl Send for SubtitleFrame
impl Sync for SubtitleFrame
impl Unpin for SubtitleFrame
impl UnsafeUnpin for SubtitleFrame
impl UnwindSafe for SubtitleFrame
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